pub(crate) struct ResetGuard<'a, BS: BlockSizes, K: BufferKind>(pub(crate) &'a mut BlockBuffer<BS, K>);Expand description
Resets the referenced buffer on drop.
Tuple Fields§
§0: &'a mut BlockBuffer<BS, K>Trait Implementations§
Source§impl<BS: BlockSizes, K: BufferKind> Drop for ResetGuard<'_, BS, K>
impl<BS: BlockSizes, K: BufferKind> Drop for ResetGuard<'_, BS, K>
Auto Trait Implementations§
impl<'a, BS, K> Freeze for ResetGuard<'a, BS, K>
impl<'a, BS, K> RefUnwindSafe for ResetGuard<'a, BS, K>
impl<'a, BS, K> Send for ResetGuard<'a, BS, K>
impl<'a, BS, K> Sync for ResetGuard<'a, BS, K>
impl<'a, BS, K> Unpin for ResetGuard<'a, BS, K>
impl<'a, BS, K> UnsafeUnpin for ResetGuard<'a, BS, K>
impl<'a, BS, K> !UnwindSafe for ResetGuard<'a, BS, K>
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