pub struct BuiltSystem { /* private fields */ }Expand description
A constructed system and the table entry name it was built from.
Implementations§
Source§impl BuiltSystem
impl BuiltSystem
Sourcepub fn name(&self) -> &'static str
pub fn name(&self) -> &'static str
Stable display name used for profiling and logging: the system’s entry name in the table, which is also what its ordering edges name.
Sourcepub fn init(&mut self, ctx: &mut PipelineContext<'_>)
pub fn init(&mut self, ctx: &mut PipelineContext<'_>)
Run the system’s init.
Sourcepub fn step(&mut self, ctx: &mut PipelineContext<'_>) -> StepResult
pub fn step(&mut self, ctx: &mut PipelineContext<'_>) -> StepResult
Run the system’s step.
Sourcepub fn access(&self) -> Access
pub fn access(&self) -> Access
The system’s declared data access, consulted at schedule build (after
init). Defaults to exclusive via the System trait.
Sourcepub fn downcast_ref<S>(&self) -> Option<&S>where
S: System,
pub fn downcast_ref<S>(&self) -> Option<&S>where
S: System,
Borrow the system as S, or None when it is a different system.
Sourcepub fn downcast_mut<S>(&mut self) -> Option<&mut S>where
S: System,
pub fn downcast_mut<S>(&mut self) -> Option<&mut S>where
S: System,
Mutably borrow the system as S, or None when it is a different
system. The DebugHook::tick drive reaches the GraphicsSystem’s
hot-reload bookkeeping and the AnimationSystem’s clip table through
this, from outside the per-system step.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BuiltSystem
impl !Sync for BuiltSystem
impl !UnwindSafe for BuiltSystem
impl Freeze for BuiltSystem
impl Send for BuiltSystem
impl Unpin for BuiltSystem
impl UnsafeUnpin for BuiltSystem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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