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