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

Function select_u16

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

Source from the content-addressed store, hash-verified

943
944 #[test]
945 fn select_u16() {
946 let a: u16 = 1;
947 let b: u16 = 2;
948 assert_eq!(Choice::TRUE.select_u16(a, b), b);
949 assert_eq!(Choice::FALSE.select_u16(a, b), a);
950 }
951
952 #[test]
953 fn select_u32() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected