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.

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<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§