Add SpecFromIter ref in the comments directly

This commit is contained in:
CPerezz 2021-01-19 18:28:33 +01:00
parent 9abd80c076
commit bc6720f872
No known key found for this signature in database
GPG Key ID: 6EE573EDC452F806

View File

@ -1,13 +1,11 @@
use core::iter::TrustedLen;
use core::ptr::{self};
#[allow(unused_imports)]
use super::SpecFromIter;
use super::{SpecExtend, Vec};
/// Another specialization trait for Vec::from_iter
/// necessary to manually prioritize overlapping specializations
/// see [`SpecFromIter`] for details.
/// see [`SpecFromIter`](super::SpecFromIter) for details.
pub(super) trait SpecFromIterNested<T, I> {
fn from_iter(iter: I) -> Self;
}