pub struct ScheduleBuilder { /* private fields */ }Expand description
Builder for incrementally constructing a schedule.
Implementations§
Source§impl ScheduleBuilder
impl ScheduleBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new ScheduleBuilder
Sourcepub fn add_system<Args, Ret, S>(&mut self, system: S) -> &mut Self
pub fn add_system<Args, Ret, S>(&mut self, system: S) -> &mut Self
Add a system to the builder
Sourcepub fn append(&mut self, other: &mut ScheduleBuilder) -> &mut Self
pub fn append(&mut self, other: &mut ScheduleBuilder) -> &mut Self
Append all system from other into self, leaving other empty.
This allows constructing smaller schedules in different modules and then
joining them together. Work will be paralellized between the two
schedules.
Sourcepub fn barrier(&mut self) -> &mut Self
pub fn barrier(&mut self) -> &mut Self
Inserts a barrier that will divide the schedule pararell execution in two dependant halves.
Usually this is not required, as the borrows of the system automatically creates dependencies, but sometimes a manual dependency is needed for things such as interior mutability or channels.
Trait Implementations§
Source§impl Default for ScheduleBuilder
impl Default for ScheduleBuilder
Source§fn default() -> ScheduleBuilder
fn default() -> ScheduleBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScheduleBuilder
impl !RefUnwindSafe for ScheduleBuilder
impl Send for ScheduleBuilder
impl !Sync for ScheduleBuilder
impl Unpin for ScheduleBuilder
impl !UnwindSafe for ScheduleBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more