pub trait FromInternalIterator<T> {
// Required method
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.