pub struct HudPrefs {
pub show_fps: bool,
pub show_vram: bool,
}Expand description
Per-frame stats-HUD visibility, published as a resource by GraphicsSystem
(which runs first) and read by StatHudSystem the same tick. Each field is
the effective on/off for that chip: the master “Display performance stats”
toggle AND the per-readout toggle from the video settings. Absent (a HUD-only
unit test with no GraphicsSystem) is treated as both shown.
Fields§
§show_fps: boolWhether the FPS chip is shown.
show_vram: boolWhether the VRAM chip is shown.
Trait Implementations§
impl Copy for HudPrefs
impl Eq for HudPrefs
impl StructuralPartialEq for HudPrefs
Auto Trait Implementations§
impl Freeze for HudPrefs
impl RefUnwindSafe for HudPrefs
impl Send for HudPrefs
impl Sync for HudPrefs
impl Unpin for HudPrefs
impl UnsafeUnpin for HudPrefs
impl UnwindSafe for HudPrefs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.