pub struct Node<'a, T: 'a> {
pub id: NodeId,
pub data: &'a T,
/* private fields */
}
Expand description
An immutable view of the Self::data in the Tree with their NodeId.
Fields§
§id: NodeId
Node ID.
data: &'a T
Data.
Implementations§
Trait Implementations§
Source§impl<'a, T: Ord + 'a> Ord for Node<'a, T>
impl<'a, T: Ord + 'a> Ord for Node<'a, T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a, T: PartialOrd + 'a> PartialOrd for Node<'a, T>
impl<'a, T: PartialOrd + 'a> PartialOrd for Node<'a, T>
impl<'a, T: Copy + 'a> Copy for Node<'a, T>
impl<'a, T: Eq + 'a> Eq for Node<'a, T>
impl<'a, T: 'a> StructuralPartialEq for Node<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Node<'a, T>
impl<'a, T> RefUnwindSafe for Node<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Node<'a, T>where
T: Sync,
impl<'a, T> Sync for Node<'a, T>where
T: Sync,
impl<'a, T> Unpin for Node<'a, T>
impl<'a, T> UnwindSafe for Node<'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