#[non_exhaustive]pub enum PerfOverlayMode {
Off,
Compact,
Full,
}Expand description
How much detail super::PerfOverlayApp currently shows, advanced by the toggle key.
Cycles Off -> Compact -> Full -> Off. Full is only reachable once
PerfOverlayApp::cycle_with has registered a second
renderer; without one, the cycle skips straight from Compact back to Off,
i.e. the plain two-state toggle from before this enum existed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Off
Nothing renders.
Compact
PerfOverlayApp’s primary PerfRenderer
(e.g. DefaultPerfRenderer) renders.
Full
The renderer registered via
PerfOverlayApp::cycle_with renders, if any;
otherwise equivalent to Off (this mode is unreachable through the toggle key alone in
that case, but PerfOverlayApp::set_mode can still be
called with it directly).
Trait Implementations§
Source§impl Clone for PerfOverlayMode
impl Clone for PerfOverlayMode
Source§fn clone(&self) -> PerfOverlayMode
fn clone(&self) -> PerfOverlayMode
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 PerfOverlayMode
impl Debug for PerfOverlayMode
Source§impl Hash for PerfOverlayMode
impl Hash for PerfOverlayMode
Source§impl PartialEq for PerfOverlayMode
impl PartialEq for PerfOverlayMode
Source§fn eq(&self, other: &PerfOverlayMode) -> bool
fn eq(&self, other: &PerfOverlayMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PerfOverlayMode
impl Eq for PerfOverlayMode
impl StructuralPartialEq for PerfOverlayMode
Auto Trait Implementations§
impl Freeze for PerfOverlayMode
impl RefUnwindSafe for PerfOverlayMode
impl Send for PerfOverlayMode
impl Sync for PerfOverlayMode
impl Unpin for PerfOverlayMode
impl UnsafeUnpin for PerfOverlayMode
impl UnwindSafe for PerfOverlayMode
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,
§impl<C> WithAlpha for Cwhere
C: Copy,
impl<C> WithAlpha for Cwhere
C: Copy,
§fn with_alpha_first<A>(self, alpha: A) -> AlphaFirst<A, Self>
fn with_alpha_first<A>(self, alpha: A) -> AlphaFirst<A, Self>
Wraps
self with alpha, storing alpha before the color in memory
(see [AlphaFirst]).§fn with_alpha_last<A>(self, alpha: A) -> AlphaLast<A, Self>
fn with_alpha_last<A>(self, alpha: A) -> AlphaLast<A, Self>
Wraps
self with alpha, storing alpha after the color in memory
(see [AlphaLast]).