Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/utils
/ ResetGuard
Class
ResetGuard
block-buffer/src/read.rs:193–193 ·
view source on GitHub ↗
Resets the referenced buffer on drop.
Source
from the content-addressed store, hash-verified
191
192
/// Resets the referenced buffer on drop.
193
struct ResetGuard<
'a, BS: BlockSizes>(&'
a mut ReadBuffer<BS>);
194
195
impl<BS: BlockSizes> Drop for ResetGuard<'_, BS> {
196
fn drop(&mut self) {
Callers
1
write_block
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected