log::kv

Trait VisitSource

Source
pub trait VisitSource<'kvs> {
    // Required method
    fn visit_pair(
        &mut self,
        key: Key<'kvs>,
        value: Value<'kvs>,
    ) -> Result<(), Error>;
}
Expand description

A visitor for the key-value pairs in a Source.

Required Methods§

Source

fn visit_pair( &mut self, key: Key<'kvs>, value: Value<'kvs>, ) -> Result<(), Error>

Visit a key-value pair.

Implementations on Foreign Types§

Source§

impl<'a, 'b: 'a, 'kvs> VisitSource<'kvs> for DebugList<'a, 'b>

Source§

fn visit_pair( &mut self, key: Key<'kvs>, value: Value<'kvs>, ) -> Result<(), Error>

Source§

impl<'a, 'b: 'a, 'kvs> VisitSource<'kvs> for DebugMap<'a, 'b>

Source§

fn visit_pair( &mut self, key: Key<'kvs>, value: Value<'kvs>, ) -> Result<(), Error>

Source§

impl<'a, 'b: 'a, 'kvs> VisitSource<'kvs> for DebugSet<'a, 'b>

Source§

fn visit_pair( &mut self, key: Key<'kvs>, value: Value<'kvs>, ) -> Result<(), Error>

Source§

impl<'a, 'b: 'a, 'kvs> VisitSource<'kvs> for DebugTuple<'a, 'b>

Source§

fn visit_pair( &mut self, key: Key<'kvs>, value: Value<'kvs>, ) -> Result<(), Error>

Source§

impl<'a, 'kvs, T> VisitSource<'kvs> for &'a mut T
where T: VisitSource<'kvs> + ?Sized,

Source§

fn visit_pair( &mut self, key: Key<'kvs>, value: Value<'kvs>, ) -> Result<(), Error>

Source§

impl<'kvs, V> VisitSource<'kvs> for Box<V>
where V: VisitSource<'kvs> + ?Sized,

Source§

fn visit_pair( &mut self, key: Key<'kvs>, value: Value<'kvs>, ) -> Result<(), Error>

Implementors§