Struct perlin::storage::RamStorage [] [src]

pub struct RamStorage<T> { /* fields omitted */ }

Stores anything in a Vector. Assumes the id is the index

Trait Implementations

impl<T: Sync + Send> Storage<T> for RamStorage<T>

Returns the number of stored elements

Tries to get a value for a given Id. Returns an Error if read fails or if id is unknown. Read more

Tries to store a value with a given Id. Returns an Error if Write fails or if there is no more space. Read more

Returns true if storage is empty