pub struct DebugToggle { /* private fields */ }Expand description
A debug toggle cached until an override changes. Unset values can be read without acquiring the cache lock.
Implementations§
Source§impl DebugToggle
impl DebugToggle
Sourcepub const fn new(name: &'static str) -> DebugToggle
pub const fn new(name: &'static str) -> DebugToggle
Creates a toggle named after the environment variable name; a programmatic override
of the same name takes precedence over the environment.
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