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

Function from_u64_nz

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

Source from the content-addressed store, hash-verified

853
854 #[test]
855 fn from_u64_nz() {
856 assert!(Choice::from_u64_nz(0).eq(Choice::FALSE).to_bool());
857 assert!(Choice::from_u64_nz(1).eq(Choice::TRUE).to_bool());
858 assert!(Choice::from_u64_nz(2).eq(Choice::TRUE).to_bool());
859 }
860
861 #[test]
862 fn from_u128_eq() {

Callers 2

from_i64_eqMethod · 0.85
from_u64_eqMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected