Struct specs::storage::MaskedStorage
source · [−]pub struct MaskedStorage<T: Component> { /* private fields */ }
Expand description
The UnprotectedStorage
together with the BitSet
that knows
about which elements are stored, and which are not.
Implementations
sourceimpl<T: Component> MaskedStorage<T>
impl<T: Component> MaskedStorage<T>
sourcepub fn new(inner: T::Storage) -> MaskedStorage<T>
pub fn new(inner: T::Storage) -> MaskedStorage<T>
Creates a new MaskedStorage
. This is called when you register
a new component type within the world.
Trait Implementations
sourceimpl<T> AnyStorage for MaskedStorage<T> where
T: Component,
impl<T> AnyStorage for MaskedStorage<T> where
T: Component,
Auto Trait Implementations
impl<T> RefUnwindSafe for MaskedStorage<T> where
<T as Component>::Storage: RefUnwindSafe,
impl<T> Send for MaskedStorage<T>
impl<T> Sync for MaskedStorage<T>
impl<T> Unpin for MaskedStorage<T> where
<T as Component>::Storage: Unpin,
impl<T> UnwindSafe for MaskedStorage<T> where
<T as Component>::Storage: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> TryDefault for T where
T: Default,
impl<T> TryDefault for T where
T: Default,
sourcefn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
sourcefn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls try_default
and panics on an error case.