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

Method new

zeroize/tests/alloc.rs:34–36  ·  view source on GitHub ↗
(val: S)

Source from the content-addressed store, hash-verified

32
33impl<S: Zeroize> SecretBox<S> {
34 fn new(val: S) -> Self {
35 Self(Box::new(val))
36 }
37}
38
39impl<S: Zeroize> Drop for SecretBox<S> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected