Skip to main content

SystemEntry

Struct SystemEntry 

Source
pub struct SystemEntry {
    pub name: &'static str,
    pub present_when: &'static str,
    pub gate: fn(&World) -> Option<Box<dyn System>>,
    pub after: &'static [&'static str],
    pub before: &'static [&'static str],
}
Expand description

One row of the system table. Table order is run order.

Fields§

§name: &'static str

The entry name; the system’s stable display name.

§present_when: &'static str

Human-readable gate condition, for docs and CLI reporting.

§gate: fn(&World) -> Option<Box<dyn System>>

Constructs the system from world content when its gate holds. Runs from World::start and from World::system_manifest, which discards the value, so a system’s constructor must stay cheap and side-effect-free.

§after: &'static [&'static str]

Systems (by entry name) that must run earlier in the tick than this one. Validated against table order at schedule build: the table stays the one execution order, and an edge that contradicts it is a startup panic, not a silent reorder.

§before: &'static [&'static str]

Systems this one must run before.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.