pub struct ParentLink {
pub parent: NodeId,
pub slot: Slot,
}Expand description
Upward edge metadata for a node that is currently attached to a parent.
Fields§
§parent: NodeIdParent node that owns the child.
slot: SlotConcrete position occupied by the child within the parent.
Trait Implementations§
Source§impl Clone for ParentLink
impl Clone for ParentLink
Source§fn clone(&self) -> ParentLink
fn clone(&self) -> ParentLink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParentLink
Source§impl Debug for ParentLink
impl Debug for ParentLink
impl Eq for ParentLink
Source§impl PartialEq for ParentLink
impl PartialEq for ParentLink
Source§fn eq(&self, other: &ParentLink) -> bool
fn eq(&self, other: &ParentLink) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParentLink
Auto Trait Implementations§
impl Freeze for ParentLink
impl RefUnwindSafe for ParentLink
impl Send for ParentLink
impl Sync for ParentLink
impl Unpin for ParentLink
impl UnsafeUnpin for ParentLink
impl UnwindSafe for ParentLink
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.