Module utils

Source
Expand description

Utility functions used by macros, so they must be publicly available.

Please, don’t use them by yourself because they aren’t stable.

Modules§

alloc
iter
mem

Functions§

ceil_mul
Smallest number that is both greater or equal to x and a multiple of m.
floor_mul
Biggest number that is both lower or equal to x and a multiple of m.
max
const version of usize::max.
min
const version of usize::min.