[][src]Enum libra_logger::Value

pub enum Value<'v> {
    Debug(&'v dyn Debug),
    Display(&'v dyn Display),
    Serde(&'v dyn Serialize),
}

Variants

Debug(&'v dyn Debug)
Display(&'v dyn Display)
Serde(&'v dyn Serialize)

Implementations

impl<'v> Value<'v>[src]

pub fn from_serde<T: Serialize>(value: &'v T) -> Self[src]

Get a value from a debuggable type.

pub fn from_debug<T: Debug>(value: &'v T) -> Self[src]

Get a value from a debuggable type.

pub fn from_display<T: Display>(value: &'v T) -> Self[src]

Get a value from a displayable type.

Trait Implementations

impl<'v> Clone for Value<'v>[src]

impl<'v> Copy for Value<'v>[src]

impl<'v> Debug for Value<'v>[src]

Auto Trait Implementations

impl<'v> !RefUnwindSafe for Value<'v>

impl<'v> !Send for Value<'v>

impl<'v> !Sync for Value<'v>

impl<'v> Unpin for Value<'v>

impl<'v> !UnwindSafe for Value<'v>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.