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

Function select_u64

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

Source from the content-addressed store, hash-verified

959
960 #[test]
961 fn select_u64() {
962 let a: u64 = 1;
963 let b: u64 = 2;
964 assert_eq!(Choice::TRUE.select_u64(a, b), b);
965 assert_eq!(Choice::FALSE.select_u64(a, b), a);
966 }
967
968 #[test]
969 fn select_u128() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected