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

Function map

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

Source from the content-addressed store, hash-verified

823
824 #[test]
825 fn map() {
826 assert!(NONE.map(|value| value + 1).ct_eq(&NONE).to_bool());
827 assert!(SOME.map(|value| value + 1).ct_eq(&OTHER).to_bool());
828 }
829
830 #[test]
831 fn map_or() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected