pub trait ScratchPool: Send {
// Required methods
fn bytes_allocated(&self) -> usize;
fn reset(&mut self);
}Expand description
Caller-owned reusable scratch allocations for codec implementations.
Required Methods§
Sourcefn bytes_allocated(&self) -> usize
fn bytes_allocated(&self) -> usize
Return the number of bytes currently retained by the pool.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".