pub trait Collection {
// Required method
fn with_capacity(cap: usize) -> Self;
}
Expand description
Collection.
Required Methods§
Sourcefn with_capacity(cap: usize) -> Self
fn with_capacity(cap: usize) -> Self
Create a new queue with the given capacity.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.