pub trait CheckablePrimitive: Checkable {
type CountType;
// Required method
fn read<R: BitRead + ?Sized>(
reader: &mut R,
count: Self::CountType,
) -> Result<Self>;
}
Expand description
A trait for readable types whose bit counts can be saved
Because the intent of reading checkable values is
to avoid validating their values when being written,
implementing the Checkable
trait is required.
Required Associated Types§
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.