pub struct DebugToggle { /* private fields */ }Expand description
A debug toggle read on a hot path: the environment is consulted once
and the value kept until an override changes, so a per-frame check
costs a lock, not a getenv walk of the whole environment.
Implementations§
Auto Trait Implementations§
impl !Freeze for DebugToggle
impl RefUnwindSafe for DebugToggle
impl Send for DebugToggle
impl Sync for DebugToggle
impl Unpin for DebugToggle
impl UnsafeUnpin for DebugToggle
impl UnwindSafe for DebugToggle
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