pub trait FromByteStreamUsing {
type Context;
type Error;
// Required method
fn from_reader<R: ByteRead + ?Sized>(
r: &mut R,
context: Self::Context,
) -> Result<Self, Self::Error>
where Self: Sized;
}
Expand description
Implemented by complex types that consume some additional context to parse themselves from a reader.
Like FromByteStreamWith
, but consumes the context.