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

Function and

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

Source from the content-addressed store, hash-verified

760
761 #[test]
762 fn and() {
763 assert!(SOME.and(NONE).is_none().to_bool());
764 assert_eq!(SOME.and(OTHER).unwrap(), OTHER.unwrap());
765 }
766
767 #[test]
768 fn and_then() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected