macro_rules! min {
($left:expr, $right:expr) => { ... };
}
Expand description
Const equivalent of std::cmp::min
The arguments must implement the ConstCmp
trait.
Non-standard library types must define a const_eq
method taking a reference.
Returns the $left
argument if both compare equal.
ยงExample
const M: u32 = konst::min!(3u32, 5);
assert_eq!(M, 3);