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

Function to_bool

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

Source from the content-addressed store, hash-verified

919
920 #[test]
921 fn to_bool() {
922 assert!(!Choice::FALSE.to_bool());
923 assert!(Choice::TRUE.to_bool());
924 }
925
926 #[test]
927 fn to_u8() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected