[−][src]Struct specs::storage::MaskedStorage
The UnprotectedStorage
together with the BitSet
that knows
about which elements are stored, and which are not.
Methods
impl<T: Component> MaskedStorage<T>
[src]
pub fn new(inner: T::Storage) -> MaskedStorage<T>
[src]
Creates a new MaskedStorage
. This is called when you register
a new component type within the world.
pub fn clear(&mut self)
[src]
Clear the contents of this storage.
pub fn remove(&mut self, id: Index) -> Option<T>
[src]
Remove an element by a given index.
pub fn drop(&mut self, id: Index)
[src]
Drop an element by a given index.
Trait Implementations
impl<T> AnyStorage for MaskedStorage<T> where
T: Component,
[src]
T: Component,
impl<T: Component> Drop for MaskedStorage<T>
[src]
impl<T: Component> Default for MaskedStorage<T> where
T::Storage: Default,
[src]
T::Storage: Default,
Auto Trait Implementations
impl<T> Unpin for MaskedStorage<T> where
<T as Component>::Storage: Unpin,
<T as Component>::Storage: Unpin,
impl<T> Sync for MaskedStorage<T> where
<T as Component>::Storage: Sync,
<T as Component>::Storage: Sync,
impl<T> Send for MaskedStorage<T> where
<T as Component>::Storage: Send,
<T as Component>::Storage: Send,
impl<T> UnwindSafe for MaskedStorage<T> where
<T as Component>::Storage: UnwindSafe,
<T as Component>::Storage: UnwindSafe,
impl<T> RefUnwindSafe for MaskedStorage<T> where
<T as Component>::Storage: RefUnwindSafe,
<T as Component>::Storage: RefUnwindSafe,
Blanket Implementations
impl<T> TryDefault for T where
T: Default,
[src]
T: Default,
fn try_default() -> Result<T, String>
[src]
fn unwrap_default() -> Self
[src]
Calls try_default
and panics on an error case.
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,