jiff::util::t

Function C

Source
pub(crate) fn C(constant: i64) -> ri64<{ _ }, { _ }>
Expand description

A short-hand creating a generic Constant value as a ranged integer.

Callers do need to ensure that the MIN and MAX bounds are specified (or more likely inferred), but otherwise, the ri64 returned will be usable in most contexts even with other ranged integers (like ri8).