Floor

Trait Floor 

Source
pub trait Floor {
    // Required method
    fn floor(self) -> Self;
}
Expand description

✅ Rounds the number toward negative infinity if the result is representable. If rounding would cause an overflow, returns the original value unchanged.

§Panics

This function never panics.

Required Methods§

Source

fn floor(self) -> 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§