pub trait ReadExt: Read {
// Provided methods
fn read_struct<T>(&mut self) -> Result<T, Error>
where T: Zeroable + NoUninit + AnyBitPattern { ... }
fn parse<T>(&mut self) -> Result<T, Error>
where T: Parsable,
Self: Sized { ... }
}Available on crate feature
sync only.Expand description
Structured-reading helpers.
Provided Methods§
Sourcefn read_struct<T>(&mut self) -> Result<T, Error>
fn read_struct<T>(&mut self) -> Result<T, Error>
Read an arbitrary-bit-pattern value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".