pub struct NodeMutDown {}
Expand description
Allows mutation of only the node itself and its descendants.
This is a safety requirement for methods such as children_mut
:
children_mut
returns mutable children; however, withNodeMutDown
orientation.- This prevents us from having more than once mutable reference to the same node.
Trait Implementationsยง
impl NodeMutOrientation for NodeMutDown
Auto Trait Implementationsยง
impl Freeze for NodeMutDown
impl RefUnwindSafe for NodeMutDown
impl Send for NodeMutDown
impl Sync for NodeMutDown
impl Unpin for NodeMutDown
impl UnwindSafe for NodeMutDown
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