Expand description
These functions compute the integer logarithm of their type, assuming that someone has already checked that the value is strictly positive.
Macrosยง
- define_
signed_ ๐ilog10 - define_
unsigned_ ๐ilog10
Functionsยง
- i8 ๐
- i16 ๐
- i32 ๐
- i64 ๐
- i128 ๐
- less_
than_ ๐5 - panic_
for_ ๐nonpositive_ argument - Instantiate this panic logic once, rather than for all the ilog methods on every single primitive type.
- u8 ๐
- u8_impl ๐
- u16 ๐
- u32 ๐
- u64 ๐
- u16_
impl ๐ - u32_
impl ๐ - u64_
impl ๐ - u128 ๐
- u128_
impl ๐ - usize ๐