Enum expry::LazyDecodedValue
source · [−]pub enum LazyDecodedValue<'a> {
Null(),
Bool(bool),
Int(i64),
Float(f32),
Double(f64),
String(&'a [u8]),
Object(LazyDecodedObject<'a>),
Array(LazyDecodedArray<'a>),
}
Variants
Null()
Bool(bool)
Int(i64)
Float(f32)
Double(f64)
String(&'a [u8])
Object(LazyDecodedObject<'a>)
Array(LazyDecodedArray<'a>)
Implementations
sourceimpl<'a> LazyDecodedValue<'a>
impl<'a> LazyDecodedValue<'a>
pub fn type_string(&self) -> &'static str
pub fn parse(
reader: &mut RawReader<'a>
) -> Result<LazyDecodedValue<'a>, EncodingError>
Trait Implementations
sourceimpl<'a> Clone for LazyDecodedValue<'a>
impl<'a> Clone for LazyDecodedValue<'a>
sourcefn clone(&self) -> LazyDecodedValue<'a>
fn clone(&self) -> LazyDecodedValue<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> PartialEq<LazyDecodedValue<'a>> for LazyDecodedValue<'a>
impl<'a> PartialEq<LazyDecodedValue<'a>> for LazyDecodedValue<'a>
sourcefn eq(&self, other: &LazyDecodedValue<'a>) -> bool
fn eq(&self, other: &LazyDecodedValue<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LazyDecodedValue<'a>) -> bool
fn ne(&self, other: &LazyDecodedValue<'a>) -> bool
This method tests for !=
.
impl<'a> Copy for LazyDecodedValue<'a>
impl<'a> StructuralPartialEq for LazyDecodedValue<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for LazyDecodedValue<'a>
impl<'a> Send for LazyDecodedValue<'a>
impl<'a> Sync for LazyDecodedValue<'a>
impl<'a> Unpin for LazyDecodedValue<'a>
impl<'a> UnwindSafe for LazyDecodedValue<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more