Struct region::ProtectGuard
source · [−]pub struct ProtectGuard { /* private fields */ }
Expand description
An RAII implementation of “scoped protection”. When this structure is dropped (falls out of scope), the memory region protection will be reset.
Implementations
sourceimpl ProtectGuard
impl ProtectGuard
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more