Struct bones_lib::ecs::system::StaticSystem
pub struct StaticSystem<In, Out> {
pub run: Box<dyn FnMut(&World, In) -> Out + Send + Sync>,
pub name: &'static str,
}
Expand description
Struct containing a static system.
Fields§
§run: Box<dyn FnMut(&World, In) -> Out + Send + Sync>
This is run every time the system is executed
name: &'static str
A best-effort name for the system, for diagnostic purposes.
Trait Implementations§
Auto Trait Implementations§
impl<In, Out> Freeze for StaticSystem<In, Out>
impl<In, Out> !RefUnwindSafe for StaticSystem<In, Out>
impl<In, Out> Send for StaticSystem<In, Out>
impl<In, Out> Sync for StaticSystem<In, Out>
impl<In, Out> Unpin for StaticSystem<In, Out>
impl<In, Out> !UnwindSafe for StaticSystem<In, Out>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more