pub trait FromInternalIterator<T> {
fn from_internal_iter<I>(internal_iter: I) -> Self
where
I: IntoInternalIterator<Item = T>;
}Expand description
A trait for conversion from an internal iterator.
This trait is commonly implemented for collections. It is useful when you have an internal iterator but you need a collection.
Required Methods
sourcefn from_internal_iter<I>(internal_iter: I) -> Selfwhere
I: IntoInternalIterator<Item = T>,
fn from_internal_iter<I>(internal_iter: I) -> Selfwhere
I: IntoInternalIterator<Item = T>,
Creates Self from an internal iterator.
Note that from_internal_iter is almost never used directly. Instead, it is used by
calling the collect method on InternalIterator.