Skip to main content

oxilean_kernel/name/
nameset_traits.rs

1//! # NameSet - Trait Implementations
2//!
3//! This module contains trait implementations for `NameSet`.
4//!
5//! ## Implemented Traits
6//!
7//! - `FromIterator`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::{Name, NameSet};
12
13impl FromIterator<Name> for NameSet {
14    fn from_iter<I: IntoIterator<Item = Name>>(iter: I) -> Self {
15        Self {
16            inner: iter.into_iter().collect(),
17        }
18    }
19}