Struct oxygengine_core::ecs::NullStorage [−][src]
pub struct NullStorage<T>(_);
Expand description
A null storage type, used for cases where the component doesn’t contain any data and instead works as a simple flag.
Trait Implementations
Returns the “default value” for a type. Read more
Clean the storage given a bitset with bits set for valid indices. Allows us to safely drop the storage. Read more
Tries reading the data associated with an Index.
This is unsafe because the external set used
to protect this storage is absent. Read more
Tries mutating the data associated with an Index.
This is unsafe because the external set used
to protect this storage is absent. Read more
This is safe because you cannot mutate ZSTs.
Auto Trait Implementations
impl<T> RefUnwindSafe for NullStorage<T> where
T: RefUnwindSafe, impl<T> Send for NullStorage<T> where
T: Send, impl<T> Sync for NullStorage<T> where
T: Sync, impl<T> Unpin for NullStorage<T> where
T: Unpin, impl<T> UnwindSafe for NullStorage<T> where
T: UnwindSafe, Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any, pub fn get_type_id(&self) -> TypeIdMutably borrows from an owned value. Read more
Tries to create the default.
Calls try_default and panics on an error case.