pub trait BufParseInput {
type Error;
// Required method
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>;
}Expand description
A helper trait for stream input.
This trait is modeled on std’s Read, but is separate so it’s usable with no_std. When the
std feature is enabled (it is by default), this trait has a blanket implementation for every
type that implement std’s Read.