pub trait Numeric:
Sized
+ Copy
+ PartialEq
+ PartialOrd
+ CastFrom<Self>
+ Pod
+ Debug
+ Sync
+ Send
+ 'static {
const BITS: usize;
const ZERO: Self;
const ONE: Self;
const TWO: Self;
const MAX: Self;
}
Expand description
A trait implemented by any generic numeric type suitable for computations.
Required Associated Constants§
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.
Implementations on Foreign Types§
Implementors§
Source§impl<const N: usize> Numeric for StaticSignedBigInt<N>
Available on crate feature integer
only.
impl<const N: usize> Numeric for StaticSignedBigInt<N>
Available on crate feature
integer
only.