pub trait FiniteValue:
Copy
+ Add<Self, Output = Self>
+ Div<Self, Output = Self>
+ Mul<Self, Output = Self>
+ Rem<Self, Output = Self>
+ Sub<Self, Output = Self>
+ PartialOrd {
const MIN: Self;
const ONE: Self;
const ZERO: Self;
// Required methods
fn from_usize(other: usize) -> Option<Self>;
fn into_usize(other: Self) -> Option<usize>;
// Provided methods
fn inc(self) -> Self { ... }
fn dec(self) -> Self { ... }
}
Required Associated Constants§
Required Methods§
fn from_usize(other: usize) -> Option<Self>
fn into_usize(other: Self) -> Option<usize>
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.