pub struct Node<T> { /* private fields */ }
Implementations§
Source§impl<T> Node<T>
impl<T> Node<T>
pub fn pos(&self) -> (u64, u64)
pub fn num(&self) -> u64
pub fn denom(&self) -> u64
pub fn element(self) -> Option<T>
pub fn element_as_ref(&self) -> Option<&T>
pub fn element_as_mut(&mut self) -> Option<&mut T>
pub fn is_none(&self) -> bool
pub fn is_some(&self) -> bool
Trait Implementations§
impl<T> StructuralPartialEq for Node<T>
Auto Trait Implementations§
impl<T> Freeze for Node<T>where
T: Freeze,
impl<T> RefUnwindSafe for Node<T>where
T: RefUnwindSafe,
impl<T> Send for Node<T>where
T: Send,
impl<T> Sync for Node<T>where
T: Sync,
impl<T> Unpin for Node<T>where
T: Unpin,
impl<T> UnwindSafe for Node<T>where
T: 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