pub struct NodeMut<'a, 'b, T> { /* private fields */ }
Expand description
A mutable reference to a node in the tree.
Implementations§
Trait Implementations§
Source§impl<'a, T> HasChildren<'a, T> for NodeMut<'a, '_, T>
impl<'a, T> HasChildren<'a, T> for NodeMut<'a, '_, T>
Source§impl<'a, T> HasChildrenMut<'a, T> for NodeMut<'a, '_, T>
impl<'a, T> HasChildrenMut<'a, T> for NodeMut<'a, '_, T>
Source§fn children_mut(&mut self) -> NodeChildrenMut<'a, '_, T>
fn children_mut(&mut self) -> NodeChildrenMut<'a, '_, T>
Returns a mutable reference to the child nodes.
Source§fn set_children<I>(&mut self, iterable: I)where
I: IntoIterator<Item = T>,
fn set_children<I>(&mut self, iterable: I)where
I: IntoIterator<Item = T>,
Sets the child nodes using the provided iterable. Read more
Source§fn set_children_subtree<I, F, U>(&mut self, iterable: I, builder: F)
fn set_children_subtree<I, F, U>(&mut self, iterable: I, builder: F)
Sets the child nodes using the provided iterable, allowing
recursive construction of a subtree. Read more
Source§fn adopt_grandchildren_at(&mut self, index: usize)
fn adopt_grandchildren_at(&mut self, index: usize)
Adopts the children of the child node at the given index as the
children here. Read more
Source§fn move_children_to_root(&mut self)
fn move_children_to_root(&mut self)
Moves the child nodes from here to become the roots of the tree. Read more
Source§fn iter_mut(&mut self) -> NodeIterMut<'a, '_, T> ⓘ
fn iter_mut(&mut self) -> NodeIterMut<'a, '_, T> ⓘ
Returns an iterator over mutable references to the child nodes.
Auto Trait Implementations§
impl<'a, 'b, T> Freeze for NodeMut<'a, 'b, T>
impl<'a, 'b, T> !RefUnwindSafe for NodeMut<'a, 'b, T>
impl<'a, 'b, T> !Send for NodeMut<'a, 'b, T>
impl<'a, 'b, T> !Sync for NodeMut<'a, 'b, T>
impl<'a, 'b, T> Unpin for NodeMut<'a, 'b, T>
impl<'a, 'b, T> !UnwindSafe for NodeMut<'a, 'b, 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