pub struct NodeRef<N>(pub N);Expand description
Wrapper to distinguish node references from other values.
Used with From<NodeRef<N>> to convert node IDs into values.
Tuple Fields§
§0: NTrait Implementations§
Auto Trait Implementations§
impl<N> Freeze for NodeRef<N>where
N: Freeze,
impl<N> RefUnwindSafe for NodeRef<N>where
N: RefUnwindSafe,
impl<N> Send for NodeRef<N>where
N: Send,
impl<N> Sync for NodeRef<N>where
N: Sync,
impl<N> Unpin for NodeRef<N>where
N: Unpin,
impl<N> UnsafeUnpin for NodeRef<N>where
N: UnsafeUnpin,
impl<N> UnwindSafe for NodeRef<N>where
N: UnwindSafe,
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