pub trait Floor: Sized {
const ZERO: Self;
const ONE: Self;
// Required methods
fn sub_to_floor(self, taken: Self) -> Self;
fn add_to_ceiling(self, given: Self) -> Self;
fn mul_to_ceiling(self, times: Self) -> Self;
fn checked_div(self, by: Self) -> Option<Self>;
fn checked_rem(self, by: Self) -> Option<Self>;
}Required Associated Constants§
Required Methods§
fn sub_to_floor(self, taken: Self) -> Self
fn add_to_ceiling(self, given: Self) -> Self
fn mul_to_ceiling(self, times: Self) -> Self
fn checked_div(self, by: Self) -> Option<Self>
fn checked_rem(self, by: Self) -> Option<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".