Skip to main content

oxilean_std/hashset/
oxihashset_builders.rs

1//! # OxiHashSet - builders Methods
2//!
3//! This module contains method implementations for `OxiHashSet`.
4//!
5//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
6
7use std::collections::HashSet as StdHashSet;
8use std::hash::Hash;
9
10use super::oxihashset_type::OxiHashSet;
11
12impl<T: Eq + Hash + Clone> OxiHashSet<T> {
13    /// Create a set with the given capacity pre-allocated.
14    pub fn with_capacity(capacity: usize) -> Self {
15        Self {
16            inner: StdHashSet::with_capacity(capacity),
17        }
18    }
19}