Enum std_logger_parser::Value[][src]

pub enum Value {
    Bool(bool),
    Int(i64),
    Float(f64),
    String(String),
}

A parsed value from a key-value pair.

Note that parsing is done based on a best-effort basis, which means integers, floats etc. might actual be represented as a Value::String.

Variants

Bool(bool)

Parsed boolean.

Int(i64)

Parsed integer.

Float(f64)

Parsed floating pointer number.

String(String)

Unparsed string.

Trait Implementations

impl Debug for Value[src]

impl FromStr for Value[src]

type Err = Infallible

This can always return Value::String.

impl PartialEq<Value> for Value[src]

impl StructuralPartialEq for Value[src]

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

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, 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.