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

Function and

ctutils/src/choice.rs:656–661  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

654
655 #[test]
656 fn and() {
657 assert_eq!((Choice::FALSE & Choice::FALSE).to_u8(), 0);
658 assert_eq!((Choice::TRUE & Choice::FALSE).to_u8(), 0);
659 assert_eq!((Choice::FALSE & Choice::TRUE).to_u8(), 0);
660 assert_eq!((Choice::TRUE & Choice::TRUE).to_u8(), 1);
661 }
662
663 #[test]
664 fn or() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected