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

Function select_u32

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

Source from the content-addressed store, hash-verified

895
896 #[test]
897 fn select_u32() {
898 let a: u32 = 1;
899 let b: u32 = 2;
900 assert_eq!(Choice::TRUE.select_u32(a, b), b);
901 assert_eq!(Choice::FALSE.select_u32(a, b), a);
902 }
903
904 #[test]
905 fn select_u64() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected