[−][src]Trait collectable::TryFromIterator
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.
Required methods
fn try_from_iter<T>(iter: &mut T) -> Result<Self, Self::Error> where
T: Iterator<Item = A>,
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.