pub trait BitDecodeExt<Ctx = (), Tag = ()>: BitDecode<Ctx, Tag> {
// Provided method
fn decode_bytes_ctx<E>(
bytes: &[u8],
byte_order: E,
ctx: &mut Ctx,
tag: Tag,
) -> Result<(Self, u64)>
where E: Endianness { ... }
}
Expand description
Utility functionality for bit-level decoding.
Provided Methods§
Sourcefn decode_bytes_ctx<E>(
bytes: &[u8],
byte_order: E,
ctx: &mut Ctx,
tag: Tag,
) -> Result<(Self, u64)>where
E: Endianness,
fn decode_bytes_ctx<E>(
bytes: &[u8],
byte_order: E,
ctx: &mut Ctx,
tag: Tag,
) -> Result<(Self, u64)>where
E: Endianness,
Parses a new value from its raw byte representation with provided context and tag.
Returns a tuple of the parsed value and the number of bits read.
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.