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

Function unwrap_or_default

ctutils/src/ct_option.rs:885–888  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

883
884 #[test]
885 fn unwrap_or_default() {
886 assert_eq!(NONE.unwrap_or_default(), Default::default());
887 assert_eq!(SOME.unwrap_or_default(), VALUE);
888 }
889
890 #[test]
891 fn xor() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected