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

Function unwrap_or_default

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected