pub trait PackedValue{
const NBITS: usize = _;
const NCHARS: usize = _;
const NTAGBITS: usize = _;
const NCHARBITS: usize = _;
const NWIDECHARS: usize = _;
// Required methods
fn truncating_cast_from(i: usize) -> Self;
fn most_significant_byte(self) -> u8;
// Provided method
fn arbitrary<'a>(u: &mut Unstructured<'a>) -> Result<Self> { ... }
}Provided Associated Constants§
const NBITS: usize = _
const NCHARS: usize = _
const NTAGBITS: usize = _
const NCHARBITS: usize = _
const NWIDECHARS: usize = _
Required Methods§
fn truncating_cast_from(i: usize) -> Self
fn most_significant_byte(self) -> u8
Provided Methods§
fn arbitrary<'a>(u: &mut Unstructured<'a>) -> Result<Self>
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.