Skip to main content

ContainerCapacity

Trait ContainerCapacity 

Source
pub trait ContainerCapacity {
    // Required methods
    fn with_capacity(capacity: usize) -> Self;
    fn clear(&mut self);
    fn capacity(&self) -> usize;
}
Expand description

Trait for containers that can be created with a specific capacity

Required Methods§

Source

fn with_capacity(capacity: usize) -> Self

Source

fn clear(&mut 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.

Implementations on Foreign Types§

Source§

impl ContainerCapacity for BlobContainer

Source§

fn with_capacity(capacity: usize) -> Self

Source§

fn clear(&mut self)

Source§

fn capacity(&self) -> usize

Source§

impl ContainerCapacity for BoolContainer

Source§

fn with_capacity(capacity: usize) -> Self

Source§

fn clear(&mut self)

Source§

fn capacity(&self) -> usize

Source§

impl ContainerCapacity for RowNumberContainer

Source§

fn with_capacity(capacity: usize) -> Self

Source§

fn clear(&mut self)

Source§

fn capacity(&self) -> usize

Source§

impl ContainerCapacity for Utf8Container

Source§

fn with_capacity(capacity: usize) -> Self

Source§

fn clear(&mut self)

Source§

fn capacity(&self) -> usize

Source§

impl<T> ContainerCapacity for NumberContainer<T>
where T: IsNumber + Clone + Debug + Default,

Source§

fn with_capacity(capacity: usize) -> Self

Source§

fn clear(&mut self)

Source§

fn capacity(&self) -> usize

Source§

impl<T> ContainerCapacity for TemporalContainer<T>
where T: IsTemporal + Clone + Debug + Default,

Source§

fn with_capacity(capacity: usize) -> Self

Source§

fn clear(&mut self)

Source§

fn capacity(&self) -> usize

Source§

impl<T> ContainerCapacity for UuidContainer<T>
where T: IsUuid + Clone + Debug + Default,

Source§

fn with_capacity(capacity: usize) -> Self

Source§

fn clear(&mut self)

Source§

fn capacity(&self) -> usize

Implementors§