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

Function to_u8_mask

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

Source from the content-addressed store, hash-verified

987
988 #[test]
989 fn to_u8_mask() {
990 assert_eq!(Choice::FALSE.to_u8_mask(), 0);
991 assert_eq!(Choice::TRUE.to_u8_mask(), u8::MAX);
992 }
993
994 #[test]
995 fn to_u16_mask() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected