pub trait BytesLike<'a>: Debug + Default {
// Required methods
fn len(&self) -> usize;
fn buf(&self) -> &[u8] ⓘ;
fn set(&mut self, b: &'a [u8]) -> Result<()>;
fn set_bytes(&mut self, b: Bytes) -> Result<()>;
}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.