/// Creates a new `NamedItems` with the specified capacity
Creates a new `NamedItems` with the specified capacity
Creates a new ` NamedItems ` with the specified capacity
pub fn with_capacity(capacity: usize) -> Self {
        NamedItems {
            items: Vec::with_capacity(capacity),
            item_indices: HashMap::with_capacity(capacity),
        }
    }
pub fn with_capacity ( capacity : usize ) -> Self { NamedItems { items : Vec :: with_capacity ( capacity ) , item_indices : HashMap :: with_capacity ( capacity ) , } }
Creates a new `NamedItems` with the specified capacity
Creates a new ` NamedItems ` with the specified capacity
capacity
usize