pub trait DecodeLe: Sized {
type Context;
// Required methods
fn decode_offset(
data: &[u8],
offset: &mut usize,
sd: &mut ShouldDecode,
ctx: &mut Self::Context,
bits: usize,
) -> Result<Self>;
fn default_bits() -> usize;
// Provided method
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)> { ... }
}Required Associated Types§
Required Methods§
fn decode_offset( data: &[u8], offset: &mut usize, sd: &mut ShouldDecode, ctx: &mut Self::Context, bits: usize, ) -> Result<Self>
fn default_bits() -> usize
Provided 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.