Trait cl_traits::WithCapacity [−][src]
pub trait WithCapacity {
type Input;
fn with_capacity(input: Self::Input) -> Self;
}Expand description
See with_capacity for more information.
Associated Types
Required methods
fn with_capacity(input: Self::Input) -> Self
fn with_capacity(input: Self::Input) -> SelfCreates a new instance based on an initial holding capacity provided by Input.
Implementations on Foreign Types
let structure: Option<i32> = cl_traits::WithCapacity::with_capacity(Default::default()); assert_eq!(structure, None);
type Input = usize