pub struct Node<T: Clone> { /* private fields */ }Implementations§
Source§impl<T: Clone> Node<T>
impl<T: Clone> Node<T>
pub fn new(data: T) -> Self
pub fn get_data(&self) -> T
pub fn mut_next(&mut self) -> &mut Option<Box<Node<T>>>
pub fn next_clone(&self) -> Option<Box<Node<T>>>
pub fn next_ref(&self) -> &Option<Box<Node<T>>>
pub fn set_next(&mut self, other_node: Option<Box<Node<T>>>)
Trait Implementations§
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