Trait cornflakes::ContextualReadable
source · pub trait ContextualReadable: DataSize {
type Context;
fn read_with(
reader: &mut impl Buf,
context: &Self::Context
) -> ReadResult<Self>
where
Self: Sized;
}
Expand description
Allows the reading of a type from bytes given some additional
Context
.