pub struct MenuActive(pub bool);Expand description
Per-frame menu state, published as a resource by the overlay build (which runs
first in the schedule) and read by the simulation systems the same tick.
true while any world-pausing screen is open: physics and animation then freeze so they
stop consuming resources behind the menu. Each system keeps its own clock
aligned across the freeze, so resuming costs one normal frame – no catch-up
burst, no pose jump.
Tuple Fields§
§0: boolTrait Implementations§
Source§impl Clone for MenuActive
impl Clone for MenuActive
Source§fn clone(&self) -> MenuActive
fn clone(&self) -> MenuActive
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 moreimpl Copy for MenuActive
Source§impl Debug for MenuActive
impl Debug for MenuActive
Source§impl Default for MenuActive
impl Default for MenuActive
Source§fn default() -> MenuActive
fn default() -> MenuActive
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MenuActive
impl RefUnwindSafe for MenuActive
impl Send for MenuActive
impl Sync for MenuActive
impl Unpin for MenuActive
impl UnsafeUnpin for MenuActive
impl UnwindSafe for MenuActive
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