Skip to main content

BuiltSystem

Struct BuiltSystem 

Source
pub struct BuiltSystem { /* private fields */ }
Expand description

A constructed system and the table entry name it was built from.

Implementations§

Source§

impl BuiltSystem

Source

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.

Source

pub fn init(&mut self, ctx: &mut PipelineContext<'_>)

Run the system’s init.

Source

pub fn step(&mut self, ctx: &mut PipelineContext<'_>) -> StepResult

Run the system’s step.

Source

pub fn access(&self) -> Access

The system’s declared data access, consulted at schedule build (after init). Defaults to exclusive via the System trait.

Source

pub fn downcast_ref<S: System>(&self) -> Option<&S>

Borrow the system as S, or None when it is a different system.

Source

pub fn downcast_mut<S: System>(&mut self) -> Option<&mut S>

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§

Source§

impl Debug for BuiltSystem

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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

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

fn try_from(value: U) -> Result<T, !>

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.