Trait rin::ecs::HierarchicalStorage[][src]

pub trait HierarchicalStorage<'a, T>: Storage<'a, T> {
    pub unsafe fn insert_child(
        &mut self,
        parent_guid: usize,
        guid: usize,
        value: T
    );
pub unsafe fn get_node(&self, guid: usize) -> NodeRef<'_, T>;
pub unsafe fn get_node_mut(&mut self, guid: usize) -> NodeRefMut<'_, T>;
pub unsafe fn fast_get_node(&self, idx: NodeId) -> NodeRef<'_, T>;
pub unsafe fn fast_get_node_mut(&mut self, idx: NodeId) -> NodeRefMut<'_, T>;
pub unsafe fn guid_for(&self, node: NodeId) -> usize;
pub unsafe fn ordered_fast_index(&self, guid: usize) -> NodeId;
pub fn ordered_ids(
        &self
    ) -> ReadGuardRef<'_, Vec<OrderedId<NodeId>, Global>>; }

Required methods

pub unsafe fn insert_child(&mut self, parent_guid: usize, guid: usize, value: T)[src]

pub unsafe fn get_node(&self, guid: usize) -> NodeRef<'_, T>[src]

pub unsafe fn get_node_mut(&mut self, guid: usize) -> NodeRefMut<'_, T>[src]

pub unsafe fn fast_get_node(&self, idx: NodeId) -> NodeRef<'_, T>[src]

pub unsafe fn fast_get_node_mut(&mut self, idx: NodeId) -> NodeRefMut<'_, T>[src]

pub unsafe fn guid_for(&self, node: NodeId) -> usize[src]

pub unsafe fn ordered_fast_index(&self, guid: usize) -> NodeId[src]

pub fn ordered_ids(&self) -> ReadGuardRef<'_, Vec<OrderedId<NodeId>, Global>>[src]

Loading content...

Implementors

impl<'a, S, T> HierarchicalStorage<'a, T> for AutoChanged<S, T> where
    T: 'a + Component,
    S: HierarchicalStorage<'a, T>,
    <S as Storage<'a, T>>::GetMut: Changes
[src]

impl<'a, S, T> HierarchicalStorage<'a, T> for Changed<S, T> where
    T: 'a,
    S: HierarchicalStorage<'a, T>, 
[src]

impl<'a, T> HierarchicalStorage<'a, T> for Forest<T> where
    T: 'a, 
[src]

Loading content...