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

Function map

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected