pub trait Parser: Sized {
type Error;
// Required method
fn parse<R: Read>(buf: R) -> Result<Self, Self::Error>;
}
Expand description
An parser type can parse objects from raw bytes of encoded data.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.