MCPcopy Create free account
hub / github.com/Lokathor/tinyvec / from_iter

Method from_iter

src/tinyvec.rs:1420–1424  ·  view source on GitHub ↗
(iter: T)

Source from the content-addressed store, hash-verified

1418impl<A: Array> FromIterator<A::Item> for TinyVec<A> {
1419 #[inline]
1420 fn from_iter<T: IntoIterator<Item = A::Item>>(iter: T) -> Self {
1421 let mut av = Self::default();
1422 av.extend(iter);
1423 av
1424 }
1425}
1426
1427impl<A: Array> Into<Vec<A::Item>> for TinyVec<A> {

Callers

nothing calls this directly

Calls 1

extendMethod · 0.45

Tested by

no test coverage detected