Type Alias freya_native_core::tree::TreeMutView
source · pub type TreeMutView<'a> = (EntitiesViewMut<'a>, ViewMut<'a, Node>);
Expand description
A mutable view of a tree.
Trait Implementations§
source§impl<'a> TreeMut for TreeMutView<'a>
impl<'a> TreeMut for TreeMutView<'a>
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<'a> TreeRef for TreeMutView<'a>
impl<'a> TreeRef for TreeMutView<'a>
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