//! # OxiHashSet - from_iter_group Methods
//!
//! This module contains method implementations for `OxiHashSet`.
//!
//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
use super::oxihashset_type::OxiHashSet;
use std::hash::Hash;
impl<T: Eq + Hash + Clone> OxiHashSet<T> {
/// Create a set from an iterator.
#[allow(clippy::should_implement_trait)]
pub fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self {
Self {
inner: iter.into_iter().collect(),
}
}
}