internal_iterator

Trait FromInternalIterator

Source
pub trait FromInternalIterator<A> {
    // Required method
    fn from_iter<T>(iter: T) -> Self
       where T: IntoInternalIterator<Item = A>;
}
Expand description

Conversion from an InternalIterator.

This is internal-iterator equivalent of std::iter::FromIterator.

Required Methods§

Source

fn from_iter<T>(iter: T) -> Self
where T: IntoInternalIterator<Item = A>,

Convert from an iterator.

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.

Implementations on Foreign Types§

Source§

impl FromInternalIterator<char> for String

Source§

fn from_iter<T>(iter: T) -> Self
where T: IntoInternalIterator<Item = char>,

Source§

impl<A> FromInternalIterator<A> for Vec<A>

Source§

fn from_iter<T>(iter: T) -> Self
where T: IntoInternalIterator<Item = A>,

Source§

impl<A: Eq + Hash> FromInternalIterator<A> for HashSet<A>

Source§

fn from_iter<T>(iter: T) -> Self
where T: IntoInternalIterator<Item = A>,

Source§

impl<A: Ord> FromInternalIterator<A> for BTreeSet<A>

Source§

fn from_iter<T>(iter: T) -> Self
where T: IntoInternalIterator<Item = A>,

Source§

impl<C, R, E> FromInternalIterator<Result<R, E>> for Result<C, E>

Source§

fn from_iter<T>(iter: T) -> Self
where T: IntoInternalIterator<Item = Result<R, E>>,

Source§

impl<K: Eq + Hash, V> FromInternalIterator<(K, V)> for HashMap<K, V>

Source§

fn from_iter<T>(iter: T) -> Self
where T: IntoInternalIterator<Item = (K, V)>,

Source§

impl<K: Ord, V> FromInternalIterator<(K, V)> for BTreeMap<K, V>

Source§

fn from_iter<T>(iter: T) -> Self
where T: IntoInternalIterator<Item = (K, V)>,

Implementors§