[][src]Struct dces::system::SystemStoreBuilder

pub struct SystemStoreBuilder<'a, E, C, Ctx> where
    E: EntityStore,
    C: ComponentStore
{ pub entity_system_id: u32, pub system_store: &'a mut SystemStore<E, C, Ctx>, pub priority: Cell<i32>, }

The system store builder is used to create a system.

Fields

entity_system_id: u32

Id of the entity system.

system_store: &'a mut SystemStore<E, C, Ctx>

Reference to the system store, used to apply filter, sort and priority to the system.

priority: Cell<i32>

Implementations

impl<'a, E, C, Ctx> SystemStoreBuilder<'a, E, C, Ctx> where
    E: EntityStore,
    C: ComponentStore
[src]

pub fn with_priority(self, priority: Priority) -> Self[src]

Add a priority to the system. Default priority is 0.

pub fn build(self) -> u32[src]

Finishing the creation of the system.

Auto Trait Implementations

impl<'a, E, C, Ctx> !RefUnwindSafe for SystemStoreBuilder<'a, E, C, Ctx>

impl<'a, E, C, Ctx> !Send for SystemStoreBuilder<'a, E, C, Ctx>

impl<'a, E, C, Ctx> !Sync for SystemStoreBuilder<'a, E, C, Ctx>

impl<'a, E, C, Ctx> Unpin for SystemStoreBuilder<'a, E, C, Ctx>

impl<'a, E, C, Ctx> !UnwindSafe for SystemStoreBuilder<'a, E, C, Ctx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<E> Component for E where
    E: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.