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§

Required Methods§

source

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.

Implementors§