Trait jxl_bitstream::Bundle

source ·
pub trait Bundle<Ctx = ()>: Sized {
    type Error;

    // Required method
    fn parse(
        bitstream: &mut Bitstream<'_>,
        ctx: Ctx,
    ) -> Result<Self, Self::Error>;
}

Required Associated Types§

Required Methods§

source

fn parse(bitstream: &mut Bitstream<'_>, ctx: Ctx) -> Result<Self, Self::Error>

Parses a value from the bitstream with the given context.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, Ctx> Bundle<Ctx> for Option<T>
where T: Bundle<Ctx>,

source§

type Error = <T as Bundle<Ctx>>::Error

source§

fn parse(bitstream: &mut Bitstream<'_>, ctx: Ctx) -> Result<Self, Self::Error>

Implementors§

source§

impl<Ctx> Bundle<Ctx> for Name