Struct specs::NullStorage[][src]

pub struct NullStorage<T>(_);

A null storage type, used for cases where the component doesn't contain any data and instead works as a simple flag.

Trait Implementations

impl<T> UnprotectedStorage<T> for NullStorage<T> where
    T: Default
[src]

Clean the storage given a bitset with bits set for valid indices. Allows us to safely drop the storage. Read more

Important traits for &'a mut R

Tries reading the data associated with an Index. This is unsafe because the external set used to protect this storage is absent. Read more

Important traits for &'a mut R

Tries mutating the data associated with an Index. This is unsafe because the external set used to protect this storage is absent. Read more

Inserts new data for a given Index.

Removes the data associated with an Index.

Drops the data associated with an Index.

impl<T> Default for NullStorage<T> where
    T: Default
[src]

Returns the "default value" for a type. Read more

impl<T> DistinctStorage for NullStorage<T>
[src]

This is safe because you cannot mutate ZSTs.

Auto Trait Implementations

impl<T> Send for NullStorage<T> where
    T: Send

impl<T> Sync for NullStorage<T> where
    T: Sync