Struct specs_mirror::MirroredStorage[][src]

pub struct MirroredStorage<C: Mirrored, S = DenseVecStorage<C>> { /* fields omitted */ }

A specs storage intended for synchronisation with external libraries.

Trait Implementations

impl<C: Mirrored, S> Default for MirroredStorage<C, S> where
    S: TryDefault
[src]

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

impl<C, S> UnprotectedStorage<C> for MirroredStorage<C, S> where
    C: Mirrored + Component,
    S: UnprotectedStorage<C>, 
[src]

Clean the storage given a bitset with bits set for valid indices. 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.

Drops the data associated with an Index.

Auto Trait Implementations

impl<C, S> Send for MirroredStorage<C, S> where
    S: Send,
    <C as Mirrored>::Event: Send

impl<C, S> Sync for MirroredStorage<C, S> where
    S: Sync,
    <C as Mirrored>::Event: Sync