[][src]Enum ijson::DestructuredRef

pub enum DestructuredRef<'a> {
    Null,
    Bool(bool),
    Number(&'a INumber),
    String(&'a IString),
    Array(&'a IArray),
    Object(&'a IObject),
}

Enum returned by IValue::destructure_ref to allow matching on the type of a reference to an IValue.

Variants

Null

Null.

Bool(bool)

Boolean. IValues do not directly contain booleans, so the value is returned directly instead of as a reference.

Number(&'a INumber)

Number.

String(&'a IString)

String.

Array(&'a IArray)

Array.

Object(&'a IObject)

Object.

Trait Implementations

impl<'a> Clone for DestructuredRef<'a>[src]

impl<'a> Copy for DestructuredRef<'a>[src]

impl<'a> Debug for DestructuredRef<'a>[src]

impl<'a> PartialEq<DestructuredRef<'a>> for DestructuredRef<'a>[src]

impl<'a> StructuralPartialEq for DestructuredRef<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for DestructuredRef<'a>

impl<'a> Send for DestructuredRef<'a>

impl<'a> Sync for DestructuredRef<'a>

impl<'a> Unpin for DestructuredRef<'a>

impl<'a> UnwindSafe for DestructuredRef<'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> 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.