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

Function to_u16_mask

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

Source from the content-addressed store, hash-verified

993
994 #[test]
995 fn to_u16_mask() {
996 assert_eq!(Choice::FALSE.to_u16_mask(), 0);
997 assert_eq!(Choice::TRUE.to_u16_mask(), u16::MAX);
998 }
999
1000 #[test]
1001 fn to_u32_mask() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected