Skip to main content

SystemScheduler

Struct SystemScheduler 

Source
pub struct SystemScheduler<Chain> { /* private fields */ }
Expand description

Monomorphized staged scheduler. Created via SchedulerBuilder.

All system calls are direct (no vtable dispatch). The Chain type parameter encodes the full schedule — the compiler inlines the recursive run_schedule chain.

§Propagation

The first stage always runs. Each subsequent stage runs only if the previous stage’s systems returned at least one true (OR semantics within a stage).

Does NOT call next_sequence — the global sequence is event-only.

Implementations§

Source§

impl<Chain: RunSchedule> SystemScheduler<Chain>

Source

pub fn run(&mut self, world: &mut World) -> usize

Run all stages with boolean propagation.

Returns the number of systems that actually ran.

Source

pub fn len(&self) -> usize

Returns the total number of systems across all stages.

Source

pub fn is_empty(&self) -> bool

Returns true if the scheduler contains no systems.

Auto Trait Implementations§

§

impl<Chain> Freeze for SystemScheduler<Chain>
where Chain: Freeze,

§

impl<Chain> RefUnwindSafe for SystemScheduler<Chain>
where Chain: RefUnwindSafe,

§

impl<Chain> Send for SystemScheduler<Chain>
where Chain: Send,

§

impl<Chain> Sync for SystemScheduler<Chain>
where Chain: Sync,

§

impl<Chain> Unpin for SystemScheduler<Chain>
where Chain: Unpin,

§

impl<Chain> UnsafeUnpin for SystemScheduler<Chain>
where Chain: UnsafeUnpin,

§

impl<Chain> UnwindSafe for SystemScheduler<Chain>
where Chain: UnwindSafe,

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.