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

Function from_u8_eq

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

Source from the content-addressed store, hash-verified

714
715 #[test]
716 fn from_u8_eq() {
717 assert!(Choice::from_u8_eq(0, 1).eq(Choice::FALSE).to_bool());
718 assert!(Choice::from_u8_eq(1, 1).eq(Choice::TRUE).to_bool());
719 }
720
721 #[test]
722 fn from_u8_le() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected