Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/utils
/ to_bool
Function
to_bool
ctutils/src/choice.rs:977–980 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
975
976
#[test]
977
fn to_bool() {
978
assert!(!Choice::FALSE.to_bool());
979
assert!(Choice::TRUE.to_bool());
980
}
981
982
#[test]
983
fn to_u8() {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected