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

Function from_u16_eq

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

Source from the content-addressed store, hash-verified

751
752 #[test]
753 fn from_u16_eq() {
754 assert!(Choice::from_u16_eq(0, 1).eq(Choice::FALSE).to_bool());
755 assert!(Choice::from_u16_eq(1, 1).eq(Choice::TRUE).to_bool());
756 }
757
758 #[test]
759 fn from_u16_le() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected