pub trait ReadExt: Read {
// Provided methods
fn read_struct<T: Zeroable + NoUninit + AnyBitPattern>(
&mut self,
) -> Result<T> { ... }
fn parse<T: Parsable>(&mut self) -> Result<T>
where Self: Sized { ... }
}Expand description
Structured-reading helpers.
Provided Methods§
Sourcefn read_struct<T: Zeroable + NoUninit + AnyBitPattern>(&mut self) -> Result<T>
fn read_struct<T: Zeroable + NoUninit + AnyBitPattern>(&mut self) -> Result<T>
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".