[][src]Trait collectable::TryFromIterator

pub trait TryFromIterator<A>: Sized {
    type Error;
    fn try_from_iter<T>(iter: &mut T) -> Result<Self, Self::Error>
    where
        T: Iterator<Item = A>
; }

Try to build a collection type from an Iterator.

Fallible in the event the capacity of the underlying container type is exceeded.

Associated Types

type Error

Error type.

Loading content...

Required methods

fn try_from_iter<T>(iter: &mut T) -> Result<Self, Self::Error> where
    T: Iterator<Item = A>, 

Try to create a new collection from the given iterator, potentially returning an error if the underlying collection's capacity is exceeded.

Loading content...

Implementors

impl<A, C: Default + TryExtend<A>> TryFromIterator<A> for C[src]

type Error = Self::Error

Loading content...