Skip to main content

Module int_log10

Module int_log10 

Source
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 ๐Ÿ”’