pub struct AncestorState<T>where
T: CustomTraversal,{
pub container_header: ContainerHeader<T>,
pub container_start_offset: usize,
pub current_child_index: usize,
}
Fields§
§container_header: ContainerHeader<T>
§container_start_offset: usize
The byte offset of the start of the container in the input buffer
current_child_index: usize
Goes from 0,… container_header.child_count() - 1 as children in the container are considered. NOTE: For maps, container_header.child_count() = 2 * Map length
The current_child_index
does NOT necessarily point at a valid value which can be decoded,
- the index is updated before the child is read, to record errors against it.
Trait Implementations§
Source§impl<T> Clone for AncestorState<T>where
T: Clone + CustomTraversal,
impl<T> Clone for AncestorState<T>where
T: Clone + CustomTraversal,
Source§fn clone(&self) -> AncestorState<T>
fn clone(&self) -> AncestorState<T>
Returns a duplicate 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<T> Debug for AncestorState<T>where
T: Debug + CustomTraversal,
impl<T> Debug for AncestorState<T>where
T: Debug + CustomTraversal,
Source§impl<T> PartialEq for AncestorState<T>where
T: PartialEq + CustomTraversal,
impl<T> PartialEq for AncestorState<T>where
T: PartialEq + CustomTraversal,
impl<T> Copy for AncestorState<T>where
T: Copy + CustomTraversal,
impl<T> Eq for AncestorState<T>where
T: Eq + CustomTraversal,
impl<T> StructuralPartialEq for AncestorState<T>where
T: CustomTraversal,
Auto Trait Implementations§
impl<T> Freeze for AncestorState<T>
impl<T> RefUnwindSafe for AncestorState<T>
impl<T> Send for AncestorState<T>
impl<T> Sync for AncestorState<T>
impl<T> Unpin for AncestorState<T>
impl<T> UnwindSafe for AncestorState<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.