pub trait StepOps:
Add<Output = Self>
+ Mul<Output = Self>
+ Rem<Output = Self>
+ Div<Output = Self>
+ Sub<Output = Self>
+ Copy
+ PartialOrd
+ PartialEq
+ Debug
+ Display {
// Required methods
fn zero() -> Self;
fn one() -> Self;
fn negative_one() -> Self;
// Provided methods
fn rem_euclid(self, rhs: Self) -> Self { ... }
fn floor(self) -> Self { ... }
fn abs(self) -> Self { ... }
}Required Methods§
Provided 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.