pub struct SystemStore<E, Ctx> where
    E: EntityStore
{ pub priorities: BTreeMap<i32, Vec<u32>>, /* private fields */ }
Expand description

The SystemStore represents the main system storage.

Fields

priorities: BTreeMap<i32, Vec<u32>>

Priorities of the systems.

Implementations

Creates a new system store with default values.

Registers the init system.

Registers the cleanup system.

Registers a new system.

Removes a system from the storage.

Register a priority for the system with the given system_id.

Returns a reference of a entity system. If the entity system does not exists NotFound will be returned.

Returns a reference of the init entity system. If the init entity system does not exists None will be returned.

Returns a reference of the cleanup entity system. If the init entity system does not exists None will be returned.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.