pub struct TypedLocation<'t, 's, T>where
T: CustomTraversal,{
pub location: Location<'t, T>,
pub typed_container_path: &'t [ContainerType<'s>],
}
Fields§
§location: Location<'t, T>
§typed_container_path: &'t [ContainerType<'s>]
The path of container types from the root to the current value. If the event is ContainerStart/End, this does not include the newly started/ended container.
NOTE: This list includes types for newly read container headers before any children are read,
which is before the Location adds them to ancestor_path
. So in some instances this typed_container_path
may be strictly longer than location.ancestor_path
.
Implementations§
Source§impl<'t, 's, T> TypedLocation<'t, 's, T>where
T: CustomTraversal,
impl<'t, 's, T> TypedLocation<'t, 's, T>where
T: CustomTraversal,
pub fn typed_ancestor_path(&self) -> Vec<(AncestorState<T>, ContainerType<'s>)>
Trait Implementations§
Source§impl<'t, 's, T> Clone for TypedLocation<'t, 's, T>where
T: Clone + CustomTraversal,
impl<'t, 's, T> Clone for TypedLocation<'t, 's, T>where
T: Clone + CustomTraversal,
Source§fn clone(&self) -> TypedLocation<'t, 's, T>
fn clone(&self) -> TypedLocation<'t, 's, 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, 's, T> Debug for TypedLocation<'t, 's, T>where
T: Debug + CustomTraversal,
impl<'t, 's, T> Debug for TypedLocation<'t, 's, T>where
T: Debug + CustomTraversal,
Source§impl<'t, 's, T> PartialEq for TypedLocation<'t, 's, T>where
T: PartialEq + CustomTraversal,
impl<'t, 's, T> PartialEq for TypedLocation<'t, 's, T>where
T: PartialEq + CustomTraversal,
impl<'t, 's, T> Eq for TypedLocation<'t, 's, T>where
T: Eq + CustomTraversal,
impl<'t, 's, T> StructuralPartialEq for TypedLocation<'t, 's, T>where
T: CustomTraversal,
Auto Trait Implementations§
impl<'t, 's, T> Freeze for TypedLocation<'t, 's, T>
impl<'t, 's, T> RefUnwindSafe for TypedLocation<'t, 's, T>
impl<'t, 's, T> Send for TypedLocation<'t, 's, T>
impl<'t, 's, T> Sync for TypedLocation<'t, 's, T>
impl<'t, 's, T> Unpin for TypedLocation<'t, 's, T>
impl<'t, 's, T> UnwindSafe for TypedLocation<'t, 's, 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.