Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/utils
/ from_u64_eq
Function
from_u64_eq
ctutils/src/choice.rs:827–830 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
825
826
#[test]
827
fn from_u64_eq() {
828
assert!(Choice::from_u64_eq(0, 1).eq(Choice::FALSE).to_bool());
829
assert!(Choice::from_u64_eq(1, 1).eq(Choice::TRUE).to_bool());
830
}
831
832
#[test]
833
fn from_u64_le() {
Callers
1
from_u128_lt_halves
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected