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

Function select_i64

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

Source from the content-addressed store, hash-verified

927
928 #[test]
929 fn select_i64() {
930 let a: i64 = 1;
931 let b: i64 = 2;
932 assert_eq!(Choice::TRUE.select_i64(a, b), b);
933 assert_eq!(Choice::FALSE.select_i64(a, b), a);
934 }
935
936 #[test]
937 fn select_u8() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected