Trait value_bag::visit::Visit[][src]

pub trait Visit<'v> {
    fn visit_any(&mut self, value: ValueBag<'_>) -> Result<(), Error>;

    fn visit_u64(&mut self, value: u64) -> Result<(), Error> { ... }
fn visit_i64(&mut self, value: i64) -> Result<(), Error> { ... }
fn visit_u128(&mut self, value: u128) -> Result<(), Error> { ... }
fn visit_i128(&mut self, value: i128) -> Result<(), Error> { ... }
fn visit_f64(&mut self, value: f64) -> Result<(), Error> { ... }
fn visit_bool(&mut self, value: bool) -> Result<(), Error> { ... }
fn visit_str(&mut self, value: &str) -> Result<(), Error> { ... }
fn visit_borrowed_str(&mut self, value: &'v str) -> Result<(), Error> { ... }
fn visit_char(&mut self, value: char) -> Result<(), Error> { ... } }

A visitor for a ValueBag.

Required methods

fn visit_any(&mut self, value: ValueBag<'_>) -> Result<(), Error>[src]

Visit a ValueBag.

This is the only required method on Visit and acts as a fallback for any more specific methods that aren’t overridden. The ValueBag may be formatted using its fmt::Debugorfmt::Displayimplementation, or serialized using itssval::Valueorserde::Serialize` implementation.

Loading content...

Provided methods

fn visit_u64(&mut self, value: u64) -> Result<(), Error>[src]

Visit an unsigned integer.

fn visit_i64(&mut self, value: i64) -> Result<(), Error>[src]

Visit a signed integer.

fn visit_u128(&mut self, value: u128) -> Result<(), Error>[src]

Visit a big unsigned integer.

fn visit_i128(&mut self, value: i128) -> Result<(), Error>[src]

Visit a big signed integer.

fn visit_f64(&mut self, value: f64) -> Result<(), Error>[src]

Visit a floating point.

fn visit_bool(&mut self, value: bool) -> Result<(), Error>[src]

Visit a boolean.

fn visit_str(&mut self, value: &str) -> Result<(), Error>[src]

Visit a string.

fn visit_borrowed_str(&mut self, value: &'v str) -> Result<(), Error>[src]

Visit a string.

fn visit_char(&mut self, value: char) -> Result<(), Error>[src]

Visit a Unicode character.

Loading content...

Implementors

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

Loading content...