Trait FromBitStreamUsing

Source
pub trait FromBitStreamUsing {
    type Context;
    type Error;

    // Required method
    fn from_reader<R: BitRead + ?Sized>(
        r: &mut R,
        context: Self::Context,
    ) -> Result<Self, Self::Error>
       where Self: Sized;
}
Expand description

Implemented by complex types that consume some immutable context to parse themselves from a reader.

Like FromBitStreamWith, but consumes its context rather than taking a shared reference to it.

Required Associated Types§

Source

type Context

Some context to consume when parsing

Source

type Error

Error generated during parsing, such as io::Error

Required Methods§

Source

fn from_reader<R: BitRead + ?Sized>( r: &mut R, context: Self::Context, ) -> Result<Self, Self::Error>
where Self: Sized,

Parse Self from reader with the given context

Implementors§