pub trait NyarCodec: Sized {
// Required methods
fn encode(
&self,
writer: &mut BinaryWriter<Vec<u8>, Leb128>,
) -> Result<(), GaiaError>;
fn decode(
reader: &mut BinaryReader<Cursor<&[u8]>, Leb128>,
) -> Result<Self, GaiaError>;
}Expand description
Codec trait for Nyar instructions
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.