pub struct ZeroGuard<'a>(/* private fields */);
Expand description
Guard that zeroes memory when dropped
This struct provides a way to ensure that memory is zeroed when
it goes out of scope, by automatically zeroing the contained
buffer when the ZeroGuard
is dropped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ZeroGuard<'a>
impl<'a> RefUnwindSafe for ZeroGuard<'a>
impl<'a> Send for ZeroGuard<'a>
impl<'a> Sync for ZeroGuard<'a>
impl<'a> Unpin for ZeroGuard<'a>
impl<'a> !UnwindSafe for ZeroGuard<'a>
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