pub trait Buffer: BufMut + 'static {
type Sealed;
// Required methods
fn alloc() -> bool;
fn with_capacity(cap: usize) -> Self;
fn seal(self) -> Self::Sealed;
}Expand description
Associated type for KeyStorage used to build the hash key.
Required Associated Types§
Required Methods§
Sourcefn with_capacity(cap: usize) -> Self
fn with_capacity(cap: usize) -> Self
Creates a new buffer with the given capacity.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".