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

Function and

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected