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

Function xor

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected