pub struct ExecutionPhase(/* private fields */);Expand description
A phase in the frame execution pipeline.
Phases are executed in order. Built-in phases have fixed IDs 0-5. Custom phases can be inserted at any position via the Scheduler API.
Implementations§
Source§impl ExecutionPhase
impl ExecutionPhase
Sourcepub const DEFAULT_ORDER: &'static [Self]
pub const DEFAULT_ORDER: &'static [Self]
Default phase order — used if no custom order is set.
Sourcepub const fn custom(id: u8) -> Self
pub const fn custom(id: u8) -> Self
Create a custom phase. IDs 6-254 are available for user phases. ID 255 is reserved.
§Panics
Panics if id is not in range 6..255.
Sourcepub const fn is_builtin(&self) -> bool
pub const fn is_builtin(&self) -> bool
Returns true if this is a built-in phase.
Trait Implementations§
Source§impl Clone for ExecutionPhase
impl Clone for ExecutionPhase
Source§fn clone(&self) -> ExecutionPhase
fn clone(&self) -> ExecutionPhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionPhase
impl Debug for ExecutionPhase
Source§impl Display for ExecutionPhase
impl Display for ExecutionPhase
Source§impl Hash for ExecutionPhase
impl Hash for ExecutionPhase
Source§impl PartialEq for ExecutionPhase
impl PartialEq for ExecutionPhase
Source§fn eq(&self, other: &ExecutionPhase) -> bool
fn eq(&self, other: &ExecutionPhase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ExecutionPhase
impl Eq for ExecutionPhase
impl StructuralPartialEq for ExecutionPhase
Auto Trait Implementations§
impl Freeze for ExecutionPhase
impl RefUnwindSafe for ExecutionPhase
impl Send for ExecutionPhase
impl Sync for ExecutionPhase
impl Unpin for ExecutionPhase
impl UnsafeUnpin for ExecutionPhase
impl UnwindSafe for ExecutionPhase
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.