pub trait System<Args, Ret> {
// Required methods
fn execute(&mut self, context: &Context<'_>) -> Result<(), Error>;
fn name(&self) -> Cow<'static, str>;
fn borrows() -> SmallVec<[Access; 8]>;
// Provided method
fn named<S>(self, name: S) -> NamedSystem<Self>
where S: Into<Cow<'static, str>>,
Self: Sized { ... }
}
Expand description
Trait which defines any function or type that can operate on a world or other context.