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

Function select_u16

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

Source from the content-addressed store, hash-verified

887
888 #[test]
889 fn select_u16() {
890 let a: u16 = 1;
891 let b: u16 = 2;
892 assert_eq!(Choice::TRUE.select_u16(a, b), b);
893 assert_eq!(Choice::FALSE.select_u16(a, b), a);
894 }
895
896 #[test]
897 fn select_u32() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected