fallible_iterator

Trait FromFallibleIterator

source
pub trait FromFallibleIterator<T>: Sized {
    // Required method
    fn from_fallible_iter<I>(it: I) -> Result<Self, I::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::Error>
where I: IntoFallibleIterator<Item = T>,

Creates a value from a fallible iterator.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§