Trait timely::container::SizableContainer
source · pub trait SizableContainer: Container {
// Required methods
fn capacity(&self) -> usize;
fn preferred_capacity() -> usize;
fn reserve(&mut self, additional: usize);
}
Expand description
A container that can be sized and reveals its capacity.
Required Methods§
sourcefn preferred_capacity() -> usize
fn preferred_capacity() -> usize
Return the preferred capacity of the container.
Object Safety§
This trait is not object safe.