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

Function map_or_default

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

Source from the content-addressed store, hash-verified

834
835 #[test]
836 fn map_or_default() {
837 assert_eq!(NONE.map_or_default(|value| value + 1), Default::default());
838 assert_eq!(SOME.map_or_default(|value| value + 1), VALUE + 1);
839 }
840
841 #[test]
842 fn ok_or() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected