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

Function or

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

Source from the content-addressed store, hash-verified

662
663 #[test]
664 fn or() {
665 assert_eq!((Choice::FALSE | Choice::FALSE).to_u8(), 0);
666 assert_eq!((Choice::TRUE | Choice::FALSE).to_u8(), 1);
667 assert_eq!((Choice::FALSE | Choice::TRUE).to_u8(), 1);
668 assert_eq!((Choice::TRUE | Choice::TRUE).to_u8(), 1);
669 }
670
671 #[test]
672 fn xor() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected