pub trait Bufferwhere
Self: Sized,{
// Required methods
fn read_buf(buffer: &mut Cursor<&[u8]>) -> Option<Self>;
fn write_buf(&self, buffer: &mut impl Write) -> Result<()>;
}Expand description
Трейт буффера
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.