[−][src]Struct oxygengine_core::ecs::storage::MaskedStorage
The UnprotectedStorage together with the BitSet that knows
about which elements are stored, and which are not.
Implementations
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> AnyStorage 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> Drop for MaskedStorage<T> where
T: Component, [src]
T: Component,
Auto Trait Implementations
impl<T> RefUnwindSafe for MaskedStorage<T> where
<T as Component>::Storage: RefUnwindSafe,
<T as Component>::Storage: RefUnwindSafe,
impl<T> Send for MaskedStorage<T> where
<T as Component>::Storage: Send,
<T as Component>::Storage: Send,
impl<T> Sync for MaskedStorage<T> where
<T as Component>::Storage: Sync,
<T as Component>::Storage: Sync,
impl<T> Unpin for MaskedStorage<T> where
<T as Component>::Storage: Unpin,
<T as Component>::Storage: Unpin,
impl<T> UnwindSafe for MaskedStorage<T> where
<T as Component>::Storage: UnwindSafe,
<T as Component>::Storage: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
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> Event for T where
T: Send + Sync + 'static, [src]
T: Send + Sync + 'static,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Resource for T where
T: Any, [src]
T: Any,
impl<T> TryDefault for T where
T: Default, [src]
T: Default,
fn try_default() -> Result<T, String>[src]
fn unwrap_default() -> Self[src]
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,