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

Function from_u128_lsb

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

Source from the content-addressed store, hash-verified

874
875 #[test]
876 fn from_u128_lsb() {
877 assert!(Choice::from_u128_lsb(0).eq(Choice::FALSE).to_bool());
878 assert!(Choice::from_u128_lsb(1).eq(Choice::TRUE).to_bool());
879 }
880
881 #[test]
882 fn from_u128_lt() {

Callers 3

overflowing_add_u128Function · 0.85
from_u128_leMethod · 0.85
from_u128_ltMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected