Trait cornflakes::Readable
source · pub trait Readable: DataSize {
fn read_from(reader: &mut impl Buf) -> ReadResult<Self>
where
Self: Sized;
}
Expand description
Reads a type from bytes.
pub trait Readable: DataSize {
fn read_from(reader: &mut impl Buf) -> ReadResult<Self>
where
Self: Sized;
}
Reads a type from bytes.