pub struct Node<T> { /* private fields */ }Implementations§
Source§impl<T> Node<T>
impl<T> Node<T>
pub fn add_child(&self, child_data: T) -> &Node<T>
pub fn insert_child(&self, child_data: T, index: usize) -> &Node<T>
pub unsafe fn remove_child(&self, index: usize)
pub fn child(&self, index: usize) -> &Node<T>
pub unsafe fn child_mut(&self, index: usize) -> &mut Node<T>
pub fn parent(&self) -> Option<&Node<T>>
pub unsafe fn parent_mut(&self) -> Option<&mut Node<T>>
pub fn value(&self) -> &T
pub unsafe fn value_mut(&self) -> &mut T
pub unsafe fn set_value(&self, value: 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>
impl<T> !Sync for Node<T>
impl<T> Unpin for Node<T>where
T: Unpin,
impl<T> UnwindSafe for Node<T>where
T: UnwindSafe + 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