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

Function select_u128

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

Source from the content-addressed store, hash-verified

911
912 #[test]
913 fn select_u128() {
914 let a: u128 = 1;
915 let b: u128 = 2;
916 assert_eq!(Choice::TRUE.select_u128(a, b), b);
917 assert_eq!(Choice::FALSE.select_u128(a, b), a);
918 }
919
920 #[test]
921 fn to_bool() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected