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

Function select_u32

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

Source from the content-addressed store, hash-verified

951
952 #[test]
953 fn select_u32() {
954 let a: u32 = 1;
955 let b: u32 = 2;
956 assert_eq!(Choice::TRUE.select_u32(a, b), b);
957 assert_eq!(Choice::FALSE.select_u32(a, b), a);
958 }
959
960 #[test]
961 fn select_u64() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected