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

Function select_u128

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

Source from the content-addressed store, hash-verified

967
968 #[test]
969 fn select_u128() {
970 let a: u128 = 1;
971 let b: u128 = 2;
972 assert_eq!(Choice::TRUE.select_u128(a, b), b);
973 assert_eq!(Choice::FALSE.select_u128(a, b), a);
974 }
975
976 #[test]
977 fn to_bool() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected