pub type TreeMutView<'a> = (EntitiesViewMut<'a>, ViewMut<'a, Node>);
Expand description
A mutable view of a tree.
Trait Implementations§
Source§impl TreeMut for TreeMutView<'_>
impl TreeMut for TreeMutView<'_>
Source§fn remove(&mut self, id: NodeId)
fn remove(&mut self, id: NodeId)
Removes the node and its children from the tree but do not delete the entities.
Source§fn create_node(&mut self, id: NodeId)
fn create_node(&mut self, id: NodeId)
Adds a new node to the tree.
Source§fn insert_before(&mut self, old_id: NodeId, new_id: NodeId)
fn insert_before(&mut self, old_id: NodeId, new_id: NodeId)
Inserts a node before another node.
Source§fn insert_after(&mut self, old_id: NodeId, new_id: NodeId)
fn insert_after(&mut self, old_id: NodeId, new_id: NodeId)
Inserts a node after another node.
Source§fn create_subtree(
&mut self,
id: NodeId,
shadow_roots: Vec<NodeId>,
slot: Option<NodeId>,
)
fn create_subtree( &mut self, id: NodeId, shadow_roots: Vec<NodeId>, slot: Option<NodeId>, )
Creates a new shadow tree.
Source§fn remove_subtree(&mut self, id: NodeId)
fn remove_subtree(&mut self, id: NodeId)
Remove any shadow tree.
Source§impl TreeRef for TreeMutView<'_>
impl TreeRef for TreeMutView<'_>
Source§fn shadow_tree(&self, id: NodeId) -> Option<&ShadowTree>
fn shadow_tree(&self, id: NodeId) -> Option<&ShadowTree>
The shadow tree tree under the node.
Source§fn slot_for_light_tree(&self, id: NodeId) -> Option<NodeId>
fn slot_for_light_tree(&self, id: NodeId) -> Option<NodeId>
The node that contains the shadow tree this node is a slot for
Source§fn root_for_light_tree(&self, id: NodeId) -> Option<NodeId>
fn root_for_light_tree(&self, id: NodeId) -> Option<NodeId>
The node that contains the shadow tree this node is a root of