[−][src]Struct oxydyze::core::component::SparseStorage
Trait Implementations
impl<C: Component> ComponentStorage<C> for SparseStorage<C>
[src]
fn new(capacity: Option<usize>) -> Self
[src]
fn fetch_by_id(&self, id: EntityId) -> Option<&C>
[src]
fn fetch_mut_by_id(&mut self, id: EntityId) -> Option<&mut C>
[src]
fn add(&mut self, component: C, id: EntityId)
[src]
fn remove(&mut self, id: EntityId)
[src]
fn ids_with(&self) -> Vec<EntityId>
[src]
fn all(&self) -> Vec<&C>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for SparseStorage<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for SparseStorage<C> where
C: Send,
C: Send,
impl<C> Sync for SparseStorage<C> where
C: Sync,
C: Sync,
impl<C> Unpin for SparseStorage<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for SparseStorage<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<R> Resource for R where
R: 'static + Any,
[src]
R: 'static + Any,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,