pub struct NodeMut<'a, T: 'a> {
pub id: NodeId,
pub data: &'a mut T,
}
Expand description
A mutable view of the Self::data in the Tree with their NodeId.
Fields§
§id: NodeId
Node ID.
data: &'a mut T
Data.
Trait Implementations§
Source§impl<'a, T: Ord + 'a> Ord for NodeMut<'a, T>
impl<'a, T: Ord + 'a> Ord for NodeMut<'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 NodeMut<'a, T>
impl<'a, T: PartialOrd + 'a> PartialOrd for NodeMut<'a, T>
impl<'a, T: Eq + 'a> Eq for NodeMut<'a, T>
impl<'a, T: 'a> StructuralPartialEq for NodeMut<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for NodeMut<'a, T>
impl<'a, T> RefUnwindSafe for NodeMut<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for NodeMut<'a, T>where
T: Send,
impl<'a, T> Sync for NodeMut<'a, T>where
T: Sync,
impl<'a, T> Unpin for NodeMut<'a, T>
impl<'a, T> !UnwindSafe for NodeMut<'a, 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