Struct specs::HashMapStorage [] [src]

pub struct HashMapStorage<T>(_);

HashMap-based storage. Best suited for rare components.

Trait Implementations

impl<T> Default for HashMapStorage<T>
[src]

[src]

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

impl<T> UnprotectedStorage<T> for HashMapStorage<T>
[src]

[src]

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

[src]

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

[src]

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

[src]

Inserts new data for a given Index.

[src]

Removes the data associated with an Index.

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