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

Function map_macro

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

Source from the content-addressed store, hash-verified

682
683 #[test]
684 fn map_macro() {
685 assert!(map!(NONE, u16::from).is_none().to_bool());
686 assert_eq!(map!(SOME, u16::from).unwrap(), u16::from(VALUE));
687 }
688
689 #[test]
690 fn unwrap_or_macro() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected