MCPcopy Create free account
hub / github.com/emberian/evdev / from_iter

Method from_iter

src/attribute_set.rs:157–161  ·  view source on GitHub ↗
(iter: I)

Source from the content-addressed store, hash-verified

155
156impl<T: ArrayedEvdevEnum> FromIterator<T> for AttributeSet<T> {
157 fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self {
158 let mut set = AttributeSet::default();
159 iter.into_iter().for_each(|el| set.insert(el));
160 set
161 }
162}
163
164impl<'a, T: ArrayedEvdevEnum> FromIterator<&'a T> for AttributeSet<T> {

Callers

nothing calls this directly

Calls 2

into_iterMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected