Trait FromByteStreamWith

trait FromByteStreamWith<'a>

Implemented by complex types that require some additional context to parse themselves from a reader. Analagous to FromStr.

Associated Types

type Context: Outlives("'a")

Some context to use when parsing

type Error

Error generated during parsing, such as io::Error

Required Methods

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

Parse Self from reader