Trait log::kv::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§