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

Function to_u32_mask

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

Source from the content-addressed store, hash-verified

999
1000 #[test]
1001 fn to_u32_mask() {
1002 assert_eq!(Choice::FALSE.to_u32_mask(), 0);
1003 assert_eq!(Choice::TRUE.to_u32_mask(), u32::MAX);
1004 }
1005
1006 #[test]
1007 fn to_u64_mask() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected