Trait alloc::vec::spec_from_iter::SpecFromIter
source · 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-+ | +---------------------+
+---------------------------------+