Skip to main content

CapacityByFactor

Trait CapacityByFactor 

Source
pub trait CapacityByFactor {
    // Required method
    fn with_capacity_by_factor(original_len: usize, factor: f64) -> Self;
}

Required Methods§

Source

fn with_capacity_by_factor(original_len: usize, factor: f64) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> CapacityByFactor for Vec<T>

Source§

fn with_capacity_by_factor(original_len: usize, factor: f64) -> Self

Implementors§