[][src]Function desse::max

pub const fn max(x: usize, y: usize) -> usize

Compares and returns maximum of two values.

Warning

This function internally uses bitwise operations to find maximum value, which, in some cases, may not be best approach. But, Rust's max() is not a const fn which is needed for compile time evaluation of max value.

The need for this function will go away once const fn fully lands in stable and max() becomes a const fn.