pub struct ProvideOnlyGuard(/* private fields */);Expand description
RAII guard: while it lives, a load only provides — a binding’s definition (the fallback class OmniBus, or any binding it
requires) of a name defined before the guard began is dropped, as a \providecommand of it is
(state::provide_only_declines); the previous mode is restored on drop.
Implementations§
Trait Implementations§
Source§impl Default for ProvideOnlyGuard
impl Default for ProvideOnlyGuard
Source§impl Drop for ProvideOnlyGuard
impl Drop for ProvideOnlyGuard
Auto Trait Implementations§
impl Freeze for ProvideOnlyGuard
impl RefUnwindSafe for ProvideOnlyGuard
impl Send for ProvideOnlyGuard
impl Sync for ProvideOnlyGuard
impl Unpin for ProvideOnlyGuard
impl UnsafeUnpin for ProvideOnlyGuard
impl UnwindSafe for ProvideOnlyGuard
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