pub struct Builder { /* private fields */ }
Expand description
A factory for Schedule
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn add_system<T: ParallelRunnable + 'static>(
&mut self,
system: T
) -> &mut Self
pub fn add_system<T: ParallelRunnable + 'static>(
&mut self,
system: T
) -> &mut Self
Adds a system to the schedule.
sourcepub fn flush(&mut self) -> &mut Self
pub fn flush(&mut self) -> &mut Self
Waits for executing systems to complete, and the flushes all outstanding system command buffers.
sourcepub fn add_thread_local_fn<F: FnMut(&mut World, &mut Resources) + 'static>(
&mut self,
f: F
) -> &mut Self
pub fn add_thread_local_fn<F: FnMut(&mut World, &mut Resources) + 'static>(
&mut self,
f: F
) -> &mut Self
Adds a thread local function to the schedule. This function will be executed on the main thread.
sourcepub fn add_thread_local<S: Runnable + 'static>(
&mut self,
system: S
) -> &mut Self
pub fn add_thread_local<S: Runnable + 'static>(
&mut self,
system: S
) -> &mut Self
Adds a thread local system to the schedule. This system will be executed on the main thread.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Builder
impl !Send for Builder
impl !Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
sourcepub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
sourcepub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
sourcepub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
sourcepub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more