Struct rin::ecs::storage::UniqueDenseVec [−][src]
pub struct UniqueDenseVec<T> { /* fields omitted */ }
Trait Implementations
impl<'a, T> Storage<'a, T> for UniqueDenseVec<T> where
T: 'a + Hash,
[src]
impl<'a, T> Storage<'a, T> for UniqueDenseVec<T> where
T: 'a + Hash,
[src]type Get = &'a T
type GetMut = RefMut<'a, T>
type DerefTarget = T
type IdedIter = Iter<'a, usize, T>
type Iter = Values<'a, T>
type IterMut = UniqueIterMut<'a, T>
pub fn new() -> UniqueDenseVec<T>
[src]
pub fn with_capacity(capacity: usize) -> UniqueDenseVec<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
) -> <UniqueDenseVec<T> as Storage<'a, T>>::GetMut
[src]
&mut self,
guid: usize
) -> <UniqueDenseVec<T> as Storage<'a, T>>::GetMut
pub unsafe fn fast_get(
&self,
idx: usize
) -> <UniqueDenseVec<T> as Storage<'a, T>>::Get
[src]
&self,
idx: usize
) -> <UniqueDenseVec<T> as Storage<'a, T>>::Get
pub unsafe fn fast_get_mut(
&mut self,
idx: usize
) -> <UniqueDenseVec<T> as Storage<'a, T>>::GetMut
[src]
&mut self,
idx: usize
) -> <UniqueDenseVec<T> as Storage<'a, T>>::GetMut
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) -> Iter<'a, usize, T>
[src]
pub fn iter(&self) -> Values<'a, T>
[src]
pub fn iter_mut(&mut self) -> UniqueIterMut<'a, T>ⓘNotable traits for UniqueIterMut<'a, T>
impl<'a, T> Iterator for UniqueIterMut<'a, T> where
T: 'a, type Item = RefMut<'a, T>;
[src]
Notable traits for UniqueIterMut<'a, T>
impl<'a, T> Iterator for UniqueIterMut<'a, T> where
T: 'a, type Item = RefMut<'a, T>;
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 UniqueDenseVec<T>
impl<T> Send for UniqueDenseVec<T> where
T: Send,
T: Send,
impl<T> Sync for UniqueDenseVec<T> where
T: Sync,
T: Sync,
impl<T> Unpin for UniqueDenseVec<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for UniqueDenseVec<T>
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]