Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/utils
/ to_u8
Function
to_u8
ctutils/src/choice.rs:983–986 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
981
982
#[test]
983
fn to_u8() {
984
assert_eq!(Choice::FALSE.to_u8(), 0);
985
assert_eq!(Choice::TRUE.to_u8(), 1);
986
}
987
988
#[test]
989
fn to_u8_mask() {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected