Trait timely::container::PushContainer
source · pub trait PushContainer: Container {
// Required methods
fn capacity(&self) -> usize;
fn preferred_capacity() -> usize;
fn reserve(&mut self, additional: usize);
// Provided method
fn push<T>(&mut self, item: T)
where T: PushInto<Self> { ... }
}
Expand description
A type that has the necessary infrastructure to push elements, without specifying how pushing
itself works. For this, pushable types should implement PushInto
.
Required Methods§
sourcefn preferred_capacity() -> usize
fn preferred_capacity() -> usize
Return the preferred capacity of the container.
Provided Methods§
Object Safety§
This trait is not object safe.