Enum kserde::AnyValue[][src]

pub enum AnyValue<'a> {
    String(Cow<'a, str>),
    Bool(bool),
    Number(f64),
    Object,
    Array,
    Null,
}

Variants

String(Cow<'a, str>)
Bool(bool)
Number(f64)
Object
Array
Null

Implementations

impl<'a> AnyValue<'a>[src]

pub fn string(self) -> Option<Cow<'a, str>>[src]

pub fn number(self) -> Option<f64>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for AnyValue<'a>

impl<'a> Send for AnyValue<'a>

impl<'a> Sync for AnyValue<'a>

impl<'a> Unpin for AnyValue<'a>

impl<'a> UnwindSafe for AnyValue<'a>

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.