pub trait System<Args, Ret> {
    fn execute(&mut self, context: &Context<'_>) -> Result<()>;
fn name(&self) -> SystemName;
fn borrows() -> Borrows; fn named<S: Into<Cow<'static, str>>>(self, name: S) -> NamedSystem<Self>
    where
        Self: Sized
, { ... } }
Expand description

Trait which defines any function or type that can operate on a world or other context.

Required methods

Executes the by borrowing from context

Returns the system name. Used for debug purposes

Returns which data will be accessed

Provided methods

Wrap the system with a custom name

Implementors