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: Default> UnprotectedStorage<T> for NullStorage<T>
[src]

Creates a new Storage<T>. This is called when you register a new component type within the world. Read more

Clean the storage given a check to figure out if an index is valid or not. 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

Inserts new data for a given Index.

Removes the data associated with an Index.

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

This is safe because mutating doesn't work and panics instead