[][src]Trait cl_traits::WithCapacity

pub trait WithCapacity {
    type Input;
    fn with_capacity(input: Self::Input) -> Self;
}

See with_capacity for more information.

Associated Types

type Input

Input

Loading content...

Required methods

fn with_capacity(input: Self::Input) -> Self

Creates a new instance based on an initial holding capacity provided by Input.

Loading content...

Implementations on Foreign Types

impl<T> WithCapacity for Option<T>[src]

let structure: Option<i32> = cl_traits::WithCapacity::with_capacity(Default::default());
assert_eq!(structure, None);

type Input = usize

Loading content...

Implementors

Loading content...