Trait trie_rs::try_collect::TryFromIterator
source · pub trait TryFromIterator<A, Marker> {
type Error: Debug;
// Required method
fn try_from_iter<T>(iter: T) -> Result<Self, Self::Error>
where Self: Sized,
T: IntoIterator<Item = A>;
}
Expand description
Try to create an object from an iterator.
Required Associated Types§
sourcetype Error: Debug
type Error: Debug
Error type of TryFromIterator::try_from_iter.
Required Methods§
sourcefn try_from_iter<T>(iter: T) -> Result<Self, Self::Error>where
Self: Sized,
T: IntoIterator<Item = A>,
fn try_from_iter<T>(iter: T) -> Result<Self, Self::Error>where
Self: Sized,
T: IntoIterator<Item = A>,
Try to turn the given iterator into Self
.