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

Function select_u64

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

Source from the content-addressed store, hash-verified

903
904 #[test]
905 fn select_u64() {
906 let a: u64 = 1;
907 let b: u64 = 2;
908 assert_eq!(Choice::TRUE.select_u64(a, b), b);
909 assert_eq!(Choice::FALSE.select_u64(a, b), a);
910 }
911
912 #[test]
913 fn select_u128() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected