Trait rinecs::storage::HierarchicalStorage [−][src]
pub trait HierarchicalStorage<'a, T>: Storage<'a, T> { unsafe fn insert_child(&mut self, parent_guid: usize, guid: usize, value: T); unsafe fn get_node(&self, guid: usize) -> NodeRef<'_, T>; unsafe fn get_node_mut(&mut self, guid: usize) -> NodeRefMut<'_, T>; unsafe fn fast_get_node(&self, idx: NodeId) -> NodeRef<'_, T>; unsafe fn fast_get_node_mut(&mut self, idx: NodeId) -> NodeRefMut<'_, T>; unsafe fn guid_for(&self, node: NodeId) -> usize; unsafe fn ordered_fast_index(&self, guid: usize) -> NodeId; fn ordered_ids(&self) -> ReadGuardRef<'_, Vec<OrderedId<NodeId>>>; }
Required methods
unsafe fn insert_child(&mut self, parent_guid: usize, guid: usize, value: T)
[src]
unsafe fn get_node(&self, guid: usize) -> NodeRef<'_, T>
[src]
unsafe fn get_node_mut(&mut self, guid: usize) -> NodeRefMut<'_, T>
[src]
unsafe fn fast_get_node(&self, idx: NodeId) -> NodeRef<'_, T>
[src]
unsafe fn fast_get_node_mut(&mut self, idx: NodeId) -> NodeRefMut<'_, T>
[src]
unsafe fn guid_for(&self, node: NodeId) -> usize
[src]
unsafe fn ordered_fast_index(&self, guid: usize) -> NodeId
[src]
fn ordered_ids(&self) -> ReadGuardRef<'_, Vec<OrderedId<NodeId>>>
[src]
Implementors
impl<'a, S, T> HierarchicalStorage<'a, T> for AutoChanged<S, T> where
S: HierarchicalStorage<'a, T>,
<S as Storage<'a, T>>::GetMut: Changes,
T: 'a + Component,
[src]
impl<'a, S, T> HierarchicalStorage<'a, T> for AutoChanged<S, T> where
S: HierarchicalStorage<'a, T>,
<S as Storage<'a, T>>::GetMut: Changes,
T: 'a + Component,
[src]unsafe fn insert_child(&mut self, parent_guid: usize, guid: usize, value: T)
[src]
unsafe fn get_node(&self, guid: usize) -> NodeRef<'_, T>
[src]
unsafe fn get_node_mut(&mut self, guid: usize) -> NodeRefMut<'_, T>
[src]
unsafe fn fast_get_node(&self, idx: NodeId) -> NodeRef<'_, T>
[src]
unsafe fn fast_get_node_mut(&mut self, idx: NodeId) -> NodeRefMut<'_, T>
[src]
unsafe fn guid_for(&self, nodeid: NodeId) -> usize
[src]
unsafe fn ordered_fast_index(&self, guid: usize) -> NodeId
[src]
fn ordered_ids(&self) -> ReadGuardRef<'_, Vec<OrderedId<NodeId>>>
[src]
impl<'a, S, T> HierarchicalStorage<'a, T> for Changed<S, T> where
S: HierarchicalStorage<'a, T>,
T: 'a,
[src]
impl<'a, S, T> HierarchicalStorage<'a, T> for Changed<S, T> where
S: HierarchicalStorage<'a, T>,
T: 'a,
[src]unsafe fn insert_child(&mut self, parent_guid: usize, guid: usize, value: T)
[src]
unsafe fn get_node(&self, guid: usize) -> NodeRef<'_, T>
[src]
unsafe fn get_node_mut(&mut self, guid: usize) -> NodeRefMut<'_, T>
[src]
unsafe fn fast_get_node(&self, idx: NodeId) -> NodeRef<'_, T>
[src]
unsafe fn fast_get_node_mut(&mut self, idx: NodeId) -> NodeRefMut<'_, T>
[src]
unsafe fn guid_for(&self, nodeid: NodeId) -> usize
[src]
unsafe fn ordered_fast_index(&self, guid: usize) -> NodeId
[src]
fn ordered_ids(&self) -> ReadGuardRef<'_, Vec<OrderedId<NodeId>>>
[src]
impl<'a, T: 'a> HierarchicalStorage<'a, T> for Forest<T>
[src]
impl<'a, T: 'a> HierarchicalStorage<'a, T> for Forest<T>
[src]