pub(super) trait SpecFromIter<T, I> {
    // Required method
    fn from_iter(iter: I) -> Self;
}
Expand description

Specialization trait used for Vec::from_iter

The delegation graph:

+-------------+
|FromIterator |
+-+-----------+
  |
  v
+-+-------------------------------+  +---------------------+
|SpecFromIter                  +---->+SpecFromIterNested   |
|where I:                      |  |  |where I:             |
|  Iterator (default)----------+  |  |  Iterator (default) |
|  vec::IntoIter               |  |  |  TrustedLen         |
|  SourceIterMarker---fallback-+  |  +---------------------+
+---------------------------------+

Required Methods§

source

fn from_iter(iter: I) -> Self

Implementors§

source§

impl<T> SpecFromIter<T, IntoIter<T, Global>> for Vec<T>

source§

impl<T, I> SpecFromIter<T, I> for Vec<T>where I: Iterator<Item = T> + SourceIter<Source: AsVecIntoIter> + InPlaceIterableMarker,

source§

impl<T, I> SpecFromIter<T, I> for Vec<T>where I: Iterator<Item = T>,