pub trait FixedWidthUnsignedInt:
Zeroize
+ Clone
+ Copy {
type Bytes: NumBytes + Default + AsMut<[u8]>;
// Required methods
fn leading_zeros(&self) -> u32;
fn to_be_bytes(&self) -> Self::Bytes;
fn try_from_be_bytes_vartime(bytes: &[u8]) -> Result<Self>;
fn bits_precision(&self) -> u32;
}Required Associated Types§
Required Methods§
fn leading_zeros(&self) -> u32
fn to_be_bytes(&self) -> Self::Bytes
fn try_from_be_bytes_vartime(bytes: &[u8]) -> Result<Self>
fn bits_precision(&self) -> u32
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".