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

Input

Required methods

Creates 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);

Implementors