Enum ijson::DestructuredRef [−][src]
pub enum DestructuredRef<'a> {
Null,
Bool(bool),
Number(&'a INumber),
String(&'a IString),
Array(&'a IArray),
Object(&'a IObject),
}
Expand description
Enum returned by IValue::destructure_ref
to allow matching on the type of
a reference to an IValue
.
Variants
Null.
Bool(bool)
Boolean.
IValue
s do not directly contain booleans, so the value is returned
directly instead of as a reference.
Tuple Fields of Bool
0: bool
Number(&'a INumber)
Number.
Tuple Fields of Number
0: &'a INumber
String(&'a IString)
String.
Tuple Fields of String
0: &'a IString
Array(&'a IArray)
Array.
Tuple Fields of Array
0: &'a IArray
Object(&'a IObject)
Object.
Tuple Fields of Object
0: &'a IObject
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more