pub trait ReadByteExt: Read {
// Provided methods
fn read_u8(&mut self) -> Result<u8> { ... }
fn read_u8_escaped(&mut self) -> Result<u8> { ... }
}Expand description
Additional methods for std::io::Read trait to read a single (escaped) byte.
Provided Methods§
Sourcefn read_u8_escaped(&mut self) -> Result<u8>
fn read_u8_escaped(&mut self) -> Result<u8>
Check if the first byte is MARK_BYTE and if it is, it will read the next byte and add one to it.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".