Struct specs::TrackedStorage [] [src]

pub struct TrackedStorage<C, S = DenseVecStorage<C>> { /* fields omitted */ }

Storage which tracks changes.

Methods

impl<C, S> TrackedStorage<C, S> where
    C: Clone,
    S: UnprotectedStorage<C>, 
[src]

[src]

Returns a slice for all change events. The elements are in entity order, that means the Change for entity with id 5 will be the 6th element of this slice.

[src]

Resets the TrackedStorage.

impl<C, S> TrackedStorage<C, S> where
    C: Clone + PartialEq,
    S: UnprotectedStorage<C>, 
[src]

[src]

Maintains the TrackedStorage

Trait Implementations

impl<C, S> Default for TrackedStorage<C, S> where
    S: Default
[src]

[src]

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

impl<C, S> UnprotectedStorage<C> for TrackedStorage<C, S> where
    C: Clone,
    S: UnprotectedStorage<C>, 
[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.