[][src]Module const_utils::isize

Functions

cond

Returns if_true if cond is true, and otherwise returns if_false

is_zero

Returns 1 if n is zero and 0 if n is greater than zero

max

Returns the maximum of a and b

min

Returns the minimum of a and b

not_zero

Returns 1 if n is zero and 0 if n is greater than zero

safe_div

Returns dividend - divisor if divisor isn't zero, and core::isize::MAX otherwise.