[][src]Struct log::key_values::source::ErasedSource

pub struct ErasedSource<'a>(_);

An erased Source.

Methods

impl<'a> ErasedSource<'a>[src]

pub fn erased(
    kvs: &'a impl Source
) -> Self
[src]

Erase a Source.

pub fn empty() -> Self[src]

Erase an empty Source.

Trait Implementations

impl<'a> Source for ErasedSource<'a>[src]

fn erase(&self) -> ErasedSource where
    Self: Sized
[src]

Erase this Source so it can be used without requiring generic type parameters. Read more

fn by_ref(&self) -> &Self[src]

An adapter to borrow self.

fn chain<KVS>(self, other: KVS) -> Chained<Self, KVS> where
    Self: Sized
[src]

Chain two Sources together.

fn try_for_each<F, E>(self, f: F) -> Result<(), Error> where
    Self: Sized,
    F: FnMut(Key, Value) -> Result<(), E>,
    E: Into<Error>, 
[src]

Apply a function to each key-value pair.

fn as_map(self) -> AsMap<Self> where
    Self: Sized
[src]

Serialize the key-value pairs as a map.

fn as_seq(self) -> AsSeq<Self> where
    Self: Sized
[src]

Serialize the key-value pairs as a sequence.

impl<'a> Clone for ErasedSource<'a>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Copy for ErasedSource<'a>[src]

impl<'a> Debug for ErasedSource<'a>[src]

Auto Trait Implementations

impl<'a> !Send for ErasedSource<'a>

impl<'a> !Sync for ErasedSource<'a>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]