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<LazyDecodedValue<'a>> for LazyDecodedValue<'a>
impl<'a> PartialEq<LazyDecodedValue<'a>> 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 ==
.