Struct expry::LazyDecodedObject
source · [−]pub struct LazyDecodedObject<'a> { /* private fields */ }
Implementations
sourceimpl<'a> LazyDecodedObject<'a>
impl<'a> LazyDecodedObject<'a>
pub fn lookup_binary<'b>(
&self,
key: (KeyHash, &'b [u8])
) -> Result<Option<&'a [u8]>, EncodingError> where
'a: 'b,
pub fn lookup_value<'b>(
&self,
key: (KeyHash, &'b [u8])
) -> Result<Option<LazyDecodedValue<'a>>, EncodingError> where
'a: 'b,
pub fn get(&mut self) -> Result<(Key<'a>, LazyDecodedValue<'_>), EncodingError>
pub fn is_empty(&mut self) -> Result<bool, EncodingError>
pub fn new(reader: RawReader<'a>) -> Self
Trait Implementations
sourceimpl<'a> Clone for LazyDecodedObject<'a>
impl<'a> Clone for LazyDecodedObject<'a>
sourcefn clone(&self) -> LazyDecodedObject<'a>
fn clone(&self) -> LazyDecodedObject<'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<LazyDecodedObject<'a>> for LazyDecodedObject<'a>
impl<'a> PartialEq<LazyDecodedObject<'a>> for LazyDecodedObject<'a>
sourcefn eq(&self, other: &LazyDecodedObject<'a>) -> bool
fn eq(&self, other: &LazyDecodedObject<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LazyDecodedObject<'a>) -> bool
fn ne(&self, other: &LazyDecodedObject<'a>) -> bool
This method tests for !=
.
impl<'a> Copy for LazyDecodedObject<'a>
impl<'a> Eq for LazyDecodedObject<'a>
impl<'a> StructuralEq for LazyDecodedObject<'a>
impl<'a> StructuralPartialEq for LazyDecodedObject<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for LazyDecodedObject<'a>
impl<'a> Send for LazyDecodedObject<'a>
impl<'a> Sync for LazyDecodedObject<'a>
impl<'a> Unpin for LazyDecodedObject<'a>
impl<'a> UnwindSafe for LazyDecodedObject<'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