Struct slog::FnValue[−][src]

pub struct FnValue<V: Value, F>(pub F)
where
    F: for<'c, 'd> Fn(&'c Record<'d>) -> V
;

Explicit lazy-closure Value

Trait Implementations

impl<'a, V: 'a + Value, F> Value for FnValue<V, F> where
    F: 'a + for<'c, 'd> Fn(&'c Record<'d>) -> V, 
[src]

Auto Trait Implementations

impl<V, F> RefUnwindSafe for FnValue<V, F> where
    F: RefUnwindSafe, 

impl<V, F> Send for FnValue<V, F> where
    F: Send, 

impl<V, F> Sync for FnValue<V, F> where
    F: Sync, 

impl<V, F> Unpin for FnValue<V, F> where
    F: Unpin, 

impl<V, F> UnwindSafe for FnValue<V, F> where
    F: UnwindSafe, 

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized, 
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.