Struct rin::ecs::storage::Forest [−][src]
pub struct Forest<T> { /* fields omitted */ }
Trait Implementations
impl<'a, T> HierarchicalStorage<'a, T> for Forest<T> where
T: 'a,
[src]
impl<'a, T> HierarchicalStorage<'a, T> for Forest<T> where
T: 'a,
[src]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 fn ordered_ids(&self) -> ReadGuardRef<'_, Vec<OrderedId<NodeId>, Global>>
[src]
pub unsafe fn guid_for(&self, nodeid: NodeId) -> usize
[src]
pub unsafe fn ordered_fast_index(&self, guid: usize) -> NodeId
[src]
impl<'a, T> Storage<'a, T> for Forest<T> where
T: 'a,
[src]
impl<'a, T> Storage<'a, T> for Forest<T> where
T: 'a,
[src]type Get = &'a T
type GetMut = &'a mut T
type DerefTarget = T
type IdedIter = AllIdedData<'a, T>
type Iter = AllData<'a, T>
type IterMut = AllDataMut<'a, T>
pub fn new() -> Forest<T>
[src]
pub fn with_capacity(capacity: usize) -> Forest<T>
[src]
pub fn insert(&mut self, guid: usize, t: T)
[src]
pub fn remove(&mut self, guid: usize)
[src]
pub unsafe fn get(&self, guid: usize) -> &'a T
[src]
pub unsafe fn get_mut(&mut self, guid: usize) -> &'a mut T
[src]
pub unsafe fn fast_get(&self, guid: usize) -> &'a T
[src]
pub unsafe fn fast_get_mut(&mut self, guid: usize) -> &'a mut T
[src]
pub fn fast_index(&self, guid: usize) -> usize
[src]
pub fn guid_from_fast_index(&self, idx: usize) -> usize
[src]
pub fn contains(&self, guid: usize) -> bool
[src]
pub fn ided_iter(&self) -> <Forest<T> as Storage<'a, T>>::IdedIter
[src]
pub fn iter(&self) -> <Forest<T> as Storage<'a, T>>::Iter
[src]
pub fn iter_mut(&mut self) -> <Forest<T> as Storage<'a, T>>::IterMut
[src]
pub fn update(&mut self)
[src]
pub fn tracks_changes() -> bool
[src]
pub fn storage_changed(&self) -> bool
[src]
impl<T> Send for Forest<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Forest<T> where
T: Sync,
[src]
T: Sync,
Auto Trait Implementations
impl<T> !RefUnwindSafe for Forest<T>
impl<T> Unpin for Forest<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Forest<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]