pub trait BufExt: Buf {
// Provided method
fn copy_or_reuse_bytes(&mut self, len: usize) -> Bytes { ... }
}Provided Methods§
Sourcefn copy_or_reuse_bytes(&mut self, len: usize) -> Bytes
fn copy_or_reuse_bytes(&mut self, len: usize) -> Bytes
Copy len Bytes from this (and advance the position), or reuse them from the underlying
buffer if possible.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".