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

Method select_i64

ctutils/src/choice.rs:339–342  ·  view source on GitHub ↗
(self, a: i64, b: i64)

Source from the content-addressed store, hash-verified

337 #[inline]
338 #[must_use]
339 pub const fn select_i64(self, a: i64, b: i64) -> i64 {
340 self.select_u64(a.cast_unsigned(), b.cast_unsigned())
341 .cast_signed()
342 }
343
344 /// `const fn` helper: return `b` if `self` is [`Choice::TRUE`], otherwise return `a`.
345 ///

Callers

nothing calls this directly

Calls 1

select_u64Method · 0.80

Tested by

no test coverage detected