Trait ToByteStreamWith

trait ToByteStreamWith<'a>

Implemented by complex types that require additional context to build themselves to a writer

Associated Types

type Context: Outlives("'a")

Some context to use when writing

type Error

Error generated during building, such as io::Error

Required Methods

fn to_writer<W: ByteWrite + ?Sized>(self: &Self, w: &mut W, context: &<Self as >::Context) -> Result<(), <Self as >::Error>
where
    Self: Sized

Generate self to writer