Trait Capacity

Source
pub trait Capacity {
    // Required methods
    fn with_capacity(cap: usize) -> Self;
    fn capacity(&self) -> usize;
}

Required Methods§

Source

fn with_capacity(cap: usize) -> Self

Source

fn capacity(&self) -> usize

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.

Implementors§