pub trait Numeric:
Sized
+ Copy
+ PartialEq<Self>
+ Binary
+ Not<Output = Self>
+ BitAnd<Output = Self>
+ BitOr<Output = Self>
+ BitOrAssign<Self>
+ BitXor<Output = Self>
+ Shl<u32, Output = Self>
+ AddAssign<Self> {
const BITS: u32;
// Required methods
fn bit(&self, pos: u32) -> bool;
fn zero() -> Self;
fn one() -> Self;
}Expand description
Trait for numeric types
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.