pub trait IntValue:
Clone
+ Display
+ Ord
+ Mul<Output = Self>
+ Add<Output = Self> {
// Required methods
fn increment(&self) -> Self;
fn decrement(&self) -> Self;
fn shift_left(&self) -> Self;
fn from_digit(byte: u8) -> Self;
}Expand description
A contract that must be observed for the value in an IntAtomic.
Implementations are provided for signed machine integers.
Required Methods§
fn increment(&self) -> Self
fn decrement(&self) -> Self
Sourcefn shift_left(&self) -> Self
fn shift_left(&self) -> Self
Multiply self by the radix.
Sourcefn from_digit(byte: u8) -> Self
fn from_digit(byte: u8) -> Self
Create self from char. Can panic if not possible.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".