pub trait TryExtend<A> {
fn try_extend<I: IntoIterator<Item = A>>(&mut self, iter: I) -> Result<()>;
}
Expand description
A trait describing the ability of a struct to create itself from a iterator.
This is similar to Extend
, but accepted the creation to error.
Required Methods
fn try_extend<I: IntoIterator<Item = A>>(&mut self, iter: I) -> Result<()>
fn try_extend<I: IntoIterator<Item = A>>(&mut self, iter: I) -> Result<()>
Fallible version of Extend::extend
.