MCPcopy Create free account
hub / github.com/RustCrypto/utils / default

Method default

sponge-cursor/src/lib.rs:22–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21impl<const RATE: usize> Default for SpongeCursor<RATE> {
22 fn default() -> Self {
23 const {
24 assert!(RATE != 0);
25 assert!(RATE < u8::MAX as usize);
26 }
27
28 Self { pos: 0 }
29 }
30}
31
32// Note that the methods should compile into a panic-free code,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected