Struct rin::ecs::storage::vec::VecStorage [−][src]
pub struct VecStorage<T> { /* fields omitted */ }
Trait Implementations
impl<T> Drop for VecStorage<T>
[src]
impl<T> Drop for VecStorage<T>
[src]impl<'a, T> Storage<'a, T> for VecStorage<T> where
T: 'a,
[src]
impl<'a, T> Storage<'a, T> for VecStorage<T> where
T: 'a,
[src]type Get = &'a T
type GetMut = &'a mut T
type DerefTarget = T
type IdedIter = RawIdedIter<'a, T>
type Iter = RawIter<'a, T>
type IterMut = RawIterMut<'a, T>
pub fn new() -> VecStorage<T>
[src]
pub fn with_capacity(capacity: usize) -> VecStorage<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) -> <VecStorage<T> as Storage<'a, T>>::IdedIter
[src]
pub fn iter(&self) -> <VecStorage<T> as Storage<'a, T>>::Iter
[src]
pub fn iter_mut(&mut self) -> <VecStorage<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]
Auto Trait Implementations
impl<T> RefUnwindSafe for VecStorage<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for VecStorage<T> where
T: Send,
T: Send,
impl<T> Sync for VecStorage<T> where
T: Sync,
T: Sync,
impl<T> Unpin for VecStorage<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for VecStorage<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]