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

Function from_i64_eq

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

Source from the content-addressed store, hash-verified

708
709 #[test]
710 fn from_i64_eq() {
711 assert!(Choice::from_i64_eq(0, 1).eq(Choice::FALSE).to_bool());
712 assert!(Choice::from_i64_eq(1, 1).eq(Choice::TRUE).to_bool());
713 }
714
715 #[test]
716 fn from_u8_eq() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected