Skip to main content

FromFallibleIterator

Trait FromFallibleIterator 

Source
pub trait FromFallibleIterator<T>: Sized {
    // Required method
    fn from_fallible_iter<I>(
        it: I,
    ) -> Result<Self, <I as IntoFallibleIterator>::Error>
       where I: IntoFallibleIterator<Item = T>;
}
Expand description

Conversion from a fallible iterator.

Required Methods§

Source

fn from_fallible_iter<I>( it: I, ) -> Result<Self, <I as IntoFallibleIterator>::Error>
where I: IntoFallibleIterator<Item = T>,

Creates a value from a fallible iterator.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<K, V, S> FromFallibleIterator<(K, V)> for HashMap<K, V, S>
where K: Hash + Eq, S: BuildHasher + Default,

Available on crate feature std only.
Source§

fn from_fallible_iter<I>( it: I, ) -> Result<HashMap<K, V, S>, <I as IntoFallibleIterator>::Error>
where I: IntoFallibleIterator<Item = (K, V)>,

Source§

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

Available on crate features alloc or std only.
Source§

impl<T, S> FromFallibleIterator<T> for HashSet<T, S>
where T: Hash + Eq, S: BuildHasher + Default,

Available on crate feature std only.
Source§

fn from_fallible_iter<I>( it: I, ) -> Result<HashSet<T, S>, <I as IntoFallibleIterator>::Error>
where I: IntoFallibleIterator<Item = T>,

Source§

impl<T> FromFallibleIterator<T> for BTreeSet<T>
where T: Ord,

Available on crate features alloc or std only.
Source§

impl<T> FromFallibleIterator<T> for Vec<T>

Available on crate features alloc or std only.
Source§

fn from_fallible_iter<I>( it: I, ) -> Result<Vec<T>, <I as IntoFallibleIterator>::Error>
where I: IntoFallibleIterator<Item = T>,

Implementors§