pub trait FromByteStreamWith<'a> {
type Context: 'a;
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 require some additional context
to parse themselves from a reader. Analagous to FromStr.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".