pub struct LocatedNode<'a, T: VariantValue> { /* private fields */ }Expand description
A node within a variant value, along with its normalized path location.
Implementations§
Source§impl<'a, T: VariantValue> LocatedNode<'a, T>
impl<'a, T: VariantValue> LocatedNode<'a, T>
Sourcepub fn location(&self) -> &NormalizedPath<'a>
pub fn location(&self) -> &NormalizedPath<'a>
Get the location of the node as a NormalizedPath.
Sourcepub fn into_location(self) -> NormalizedPath<'a>
pub fn into_location(self) -> NormalizedPath<'a>
Take the location of the node as a NormalizedPath.
Trait Implementations§
Source§impl<'a, T: Clone + VariantValue> Clone for LocatedNode<'a, T>
impl<'a, T: Clone + VariantValue> Clone for LocatedNode<'a, T>
Source§fn clone(&self) -> LocatedNode<'a, T>
fn clone(&self) -> LocatedNode<'a, 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<'a, T: Debug + VariantValue> Debug for LocatedNode<'a, T>
impl<'a, T: Debug + VariantValue> Debug for LocatedNode<'a, T>
Source§impl<T: VariantValue> PartialEq for LocatedNode<'_, T>
impl<T: VariantValue> PartialEq for LocatedNode<'_, T>
impl<T: VariantValue> Eq for LocatedNode<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for LocatedNode<'a, T>
impl<'a, T> RefUnwindSafe for LocatedNode<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for LocatedNode<'a, T>where
T: Sync,
impl<'a, T> Sync for LocatedNode<'a, T>where
T: Sync,
impl<'a, T> Unpin for LocatedNode<'a, T>
impl<'a, T> UnwindSafe for LocatedNode<'a, T>where
T: RefUnwindSafe,
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<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.