[−][src]Struct log::key_values::source::ErasedSource
An erased Source
.
Methods
impl<'a> ErasedSource<'a>
[src]
pub fn erased(
kvs: &'a impl Source
) -> Self
[src]
kvs: &'a impl Source
) -> Self
Erase a Source
.
pub fn empty() -> Self
[src]
Erase an empty Source
.
Trait Implementations
impl<'a> Source for ErasedSource<'a>
[src]
fn visit<'kvs>(&'kvs self, visitor: &mut dyn Visitor<'kvs>) -> Result<(), Error>
[src]
fn get<'kvs, Q>(&'kvs self, key: Q) -> Option<Value<'kvs>> where
Q: ToKey,
[src]
Q: ToKey,
fn erase(&self) -> ErasedSource where
Self: Sized,
[src]
Self: Sized,
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]
Self: Sized,
Chain two Source
s 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]
Self: Sized,
F: FnMut(Key, Value) -> Result<(), E>,
E: Into<Error>,
Apply a function to each key-value pair.
fn as_map(self) -> AsMap<Self> where
Self: Sized,
[src]
Self: Sized,
Serialize the key-value pairs as a map.
fn as_seq(self) -> AsSeq<Self> where
Self: Sized,
[src]
Self: Sized,
Serialize the key-value pairs as a sequence.
impl<'a> Clone for ErasedSource<'a>
[src]
fn clone(&self) -> 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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,