[][src]Trait log::key_values::value::Visitor

pub trait Visitor {
    fn fmt(&mut self, v: Arguments) -> Result<(), Error>;

    fn u64(&mut self, v: u64) -> Result<(), Error> { ... }
fn i64(&mut self, v: i64) -> Result<(), Error> { ... }
fn f64(&mut self, v: f64) -> Result<(), Error> { ... }
fn bool(&mut self, v: bool) -> Result<(), Error> { ... }
fn char(&mut self, v: char) -> Result<(), Error> { ... }
fn str(&mut self, v: &str) -> Result<(), Error> { ... }
fn none(&mut self) -> Result<(), Error> { ... } }

A visitor for a value.

Required methods

fn fmt(&mut self, v: Arguments) -> Result<(), Error>

Visit a format.

Loading content...

Provided methods

fn u64(&mut self, v: u64) -> Result<(), Error>

Visit an unsigned integer.

fn i64(&mut self, v: i64) -> Result<(), Error>

Visit a signed integer.

fn f64(&mut self, v: f64) -> Result<(), Error>

Visit a floating point number.

fn bool(&mut self, v: bool) -> Result<(), Error>

Visit a boolean.

fn char(&mut self, v: char) -> Result<(), Error>

Visit a Unicode character.

fn str(&mut self, v: &str) -> Result<(), Error>

Visit a UTF-8 string.

fn none(&mut self) -> Result<(), Error>

Visit an empty value.

Loading content...

Implementations on Foreign Types

impl<'a, T: ?Sized> Visitor for &'a mut T where
    T: Visitor
[src]

Loading content...

Implementors

Loading content...