pub trait Primitive: Operate + Sealed {
type Signed: Primitive + Cast<Self>;
type Unsigned: Primitive + Cast<Self>;
const SIGNED: bool;
const MIN: Self;
const MAX: Self;
const BITS: u8;
}
Expand description
Primitive trait for all primitive types.
Required Associated Constants§
Required Associated Types§
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.