Trait log::kv::source::Visitor

source ·
pub trait Visitor<'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> Visitor<'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> Visitor<'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> Visitor<'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> Visitor<'kvs> for DebugTuple<'a, 'b>

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§