[−][src]Struct oxygengine_core::ecs::storage::MaskedStorage   
The UnprotectedStorage together with the BitSet that knows
about which elements are stored, and which are not.
Methods
impl<T> MaskedStorage<T> where
    T: Component, [src]
T: Component,
pub fn new(inner: <T as Component>::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: u32) -> Option<T>[src]
Remove an element by a given index.
pub fn drop(&mut self, id: u32)[src]
Drop an element by a given index.
Trait Implementations
impl<T> Drop for MaskedStorage<T> where
    T: Component, [src]
T: Component,
impl<T> Default for MaskedStorage<T> where
    T: Component,
    <T as Component>::Storage: Default, [src]
T: Component,
<T as Component>::Storage: Default,
fn default() -> MaskedStorage<T>[src]
impl<T> AnyStorage for MaskedStorage<T> where
    T: Component, [src]
T: Component,
Auto Trait Implementations
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> Unpin for MaskedStorage<T> where
    <T as Component>::Storage: Unpin, 
<T as Component>::Storage: Unpin,
impl<T> RefUnwindSafe for MaskedStorage<T> where
    <T as Component>::Storage: RefUnwindSafe, 
<T as Component>::Storage: RefUnwindSafe,
impl<T> UnwindSafe for MaskedStorage<T> where
    <T as Component>::Storage: UnwindSafe, 
<T as Component>::Storage: UnwindSafe,
Blanket Implementations
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> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Resource for T where
    T: Any + Send + Sync, 
T: Any + Send + Sync,
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> Any for T where
    T: Any, 
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Event for T where
    T: Send + Sync + 'static, 
T: Send + Sync + 'static,