pub trait Parse {
type Error;
// Required methods
fn from_buf<T: Buf>(buf: &mut T) -> Result<Self, Self::Error>
where Self: Sized;
fn to_buf<T: BufMut>(&self, buf: &mut T) -> Result<(), Self::Error>;
}Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".