pub trait ToBitStreamWith<'a> {
    type Context: 'a;
    type Error;
    // Required method
    fn to_writer<W: BitWrite + ?Sized>(
        &self,
        w: &mut W,
        context: &Self::Context,
    ) -> Result<(), Self::Error>
       where Self: Sized;
}Expand description
Implemented by complex types that require additional context to build themselves to a writer