CheckedLog10Floor

Trait CheckedLog10Floor 

Source
pub trait CheckedLog10Floor: Sized {
    // Required method
    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§

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§