pub trait Read {
type Error;
// Required method
fn read_exact(&mut self, data: &mut [u8]) -> Result<(), Self::Error>;
}Expand description
A trait indicating a type that can read bytes
Note that this is similar to std::io::Read, but simplified for use in a
no_std context.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".