pub trait CheckedLn: Sized {
// Required method
const fn checked_ln(self) -> Option<Self>;
}
Expand description
✅ Returns the natural logarithm of self
, or None
if self
is zero or negative.
§Panics
This function never panics.
Required Methods§
const fn checked_ln(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.