Struct froggy::Storage [] [src]

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

Component storage type. Manages the components and allows for efficient processing.

Methods

impl<T> Storage<T>
[src]

Create a new empty storage.

Create a new empty storage with specified capacity.

Synchronize for all the pending updates.

Iterate all components in this storage.

Iterate all components that are still referenced by something.

Iterate all components in this storage, mutably.

Iterate all components that are still referenced by something, mutably.

Pin an iterated item with a newly created Pointer.

Produce a streaming mutable iterator.

Produce a streaming iterator that skips over lost elements.

Add a new component to the storage, returning the Pointer to it.

Trait Implementations

impl<'a, T> Index<&'a Pointer<T>> for Storage<T>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<'a, T> IndexMut<&'a Pointer<T>> for Storage<T>
[src]

The method for the mutable indexing (container[index]) operation

impl<T> FromIterator<T> for Storage<T>
[src]

Creates a value from an iterator. Read more

impl<'a, T> IntoIterator for &'a Storage<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<'a, T> IntoIterator for &'a mut Storage<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more