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

Function select_u8

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

Source from the content-addressed store, hash-verified

935
936 #[test]
937 fn select_u8() {
938 let a: u8 = 1;
939 let b: u8 = 2;
940 assert_eq!(Choice::TRUE.select_u8(a, b), b);
941 assert_eq!(Choice::FALSE.select_u8(a, b), a);
942 }
943
944 #[test]
945 fn select_u16() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected