Skip to main content

FastCollectionBuilder

Trait FastCollectionBuilder 

Source
pub trait FastCollectionBuilder {
    // Required methods
    fn new() -> Self;
    fn with_capacity(capacity: usize) -> Self;
}
Expand description

Helper trait providing new and with_capacity functions for FastMap and FastSet.

Required Methods§

Source

fn new() -> Self

Creates an empty collection.

Source

fn with_capacity(capacity: usize) -> Self

Creates an empty collection with at least the specified capacity.

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§