pub trait BasicNum {
const MIN_VALUE: Self;
const MAX_VALUE: Self;
// Required methods
fn dec(&self) -> Self;
fn inc(&self) -> Self;
}
Expand description
Basic operations (increase decrease) for numbers
Required Associated Constants§
Required 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.