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§
Sourcefn from_fallible_iter<I>(
it: I,
) -> Result<Self, <I as IntoFallibleIterator>::Error>where
I: IntoFallibleIterator<Item = T>,
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>
Available on crate feature std only.
impl<K, V, S> FromFallibleIterator<(K, V)> for HashMap<K, V, S>
Available on crate feature
std only.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.
impl<K, V> FromFallibleIterator<(K, V)> for BTreeMap<K, V>where
K: Ord,
Available on crate features
alloc or std only.fn from_fallible_iter<I>(
it: I,
) -> Result<BTreeMap<K, V>, <I as IntoFallibleIterator>::Error>where
I: IntoFallibleIterator<Item = (K, V)>,
Source§impl<T, S> FromFallibleIterator<T> for HashSet<T, S>
Available on crate feature std only.
impl<T, S> FromFallibleIterator<T> for HashSet<T, S>
Available on crate feature
std only.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.
impl<T> FromFallibleIterator<T> for BTreeSet<T>where
T: Ord,
Available on crate features
alloc or std only.fn from_fallible_iter<I>(
it: I,
) -> Result<BTreeSet<T>, <I as IntoFallibleIterator>::Error>where
I: IntoFallibleIterator<Item = T>,
Source§impl<T> FromFallibleIterator<T> for Vec<T>
Available on crate features alloc or std only.
impl<T> FromFallibleIterator<T> for Vec<T>
Available on crate features
alloc or std only.