pub trait CodeInt:
PrimInt
+ FromPrimitive
+ ToPrimitive
+ Popcnt
+ Default {
// Required methods
fn dimensions() -> usize;
fn serialize_into<W: Write>(&self, writer: W) -> Result<()>;
fn deserialize_from<R: Read>(reader: R) -> Result<Self>;
}
Expand description
Generic trait of binary codes.
Required Methods§
fn dimensions() -> usize
fn serialize_into<W: Write>(&self, writer: W) -> Result<()>
fn deserialize_from<R: Read>(reader: R) -> 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.