[−][src]Trait collectable::TryExtend
Fallible equivalent of core::iter::Extend
- extends a collection
with the contents of an iterator, but with the option to return an error
in the event the container's capacity has been exceeded.
Associated Types
type Error
Error type.
Required methods
fn try_extend<T>(&mut self, iter: &mut T) -> Result<(), Self::Error> where
T: Iterator<Item = A>,
T: Iterator<Item = A>,
Try to extend the collection from the given iterator.
Provided methods
fn try_extend_from_slice(&mut self, slice: &[A]) -> Result<(), Self::Error> where
A: Clone,
A: Clone,
Try to extend the collection from the given slice.