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

Function xor

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

Source from the content-addressed store, hash-verified

889
890 #[test]
891 fn xor() {
892 assert!(NONE.xor(NONE).is_none().to_bool());
893 assert!(SOME.xor(NONE).ct_eq(&SOME).to_bool());
894 assert!(NONE.xor(SOME).ct_eq(&SOME).to_bool());
895 assert!(SOME.xor(OTHER).is_none().to_bool());
896 }
897
898 #[test]
899 fn zip() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected