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

Function select_i64

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

Source from the content-addressed store, hash-verified

871
872 #[test]
873 fn select_i64() {
874 let a: i64 = 1;
875 let b: i64 = 2;
876 assert_eq!(Choice::TRUE.select_i64(a, b), b);
877 assert_eq!(Choice::FALSE.select_i64(a, b), a);
878 }
879
880 #[test]
881 fn select_u8() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected