pub trait IntegerProperties:
PrimInt
+ Debug
+ Display {
type Dual: IntegerType;
const BITS: u64;
const MAX: Self;
const MIN: Self;
// Required methods
fn is_signed() -> bool;
fn type_name() -> &'static str;
fn into_dual(self) -> Self::Dual;
}
Expand description
Properties common to all integer types.
Required Associated Constants§
Required Associated Types§
type Dual: IntegerType
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.