Trait value_bag::fill::Fill[][src]

pub trait Fill {
    fn fill(&self, slot: &mut Slot<'_, '_>) -> Result<(), Error>;
}
Expand description

A type that requires extra work to convert into a ValueBag.

This trait is an advanced initialization API. It’s intended for erased values coming from other logging frameworks that may need to perform extra work to determine the concrete type to use.

Required methods

fn fill(&self, slot: &mut Slot<'_, '_>) -> Result<(), Error>[src]

Expand description

Fill a value.

Implementors

impl<F> Fill for F where
    F: Fn(&mut Slot<'_, '_>) -> Result<(), Error>, 
[src]

fn fill(&self, slot: &mut Slot<'_, '_>) -> Result<(), Error>[src]