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

Function select_u8

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

Source from the content-addressed store, hash-verified

879
880 #[test]
881 fn select_u8() {
882 let a: u8 = 1;
883 let b: u8 = 2;
884 assert_eq!(Choice::TRUE.select_u8(a, b), b);
885 assert_eq!(Choice::FALSE.select_u8(a, b), a);
886 }
887
888 #[test]
889 fn select_u16() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected