Trait CheckedLog10Floor

Source
pub trait CheckedLog10Floor: Sized {
    // Required method
    const fn checked_log10_floor(self) -> Option<Self>;
}
Expand description

✅ Returns the base-10 logarithm of self, rounded down to the nearest integer, or None if self is zero or negative.

§Panics

This function never panics.

Required Methods§

Source

const fn checked_log10_floor(self) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§