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

Function unwrap_or

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

Source from the content-addressed store, hash-verified

876
877 #[test]
878 fn unwrap_or() {
879 let example = 52;
880 assert_eq!(NONE.unwrap_or(example), example);
881 assert_eq!(SOME.unwrap_or(example), VALUE);
882 }
883
884 #[test]
885 fn unwrap_or_default() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected