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§
source§impl<'a> LazyDecodedValue<'a>
impl<'a> LazyDecodedValue<'a>
pub fn type_string(&self) -> &'static str
pub fn decode( reader: &mut RawReader<'a> ) -> Result<LazyDecodedValue<'a>, EncodingError>
Trait Implementations§
source§impl<'a> Clone for LazyDecodedValue<'a>
impl<'a> Clone for LazyDecodedValue<'a>
source§fn clone(&self) -> LazyDecodedValue<'a>
fn clone(&self) -> LazyDecodedValue<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> PartialEq for LazyDecodedValue<'a>
impl<'a> PartialEq for LazyDecodedValue<'a>
source§fn 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 ==
.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more