Trait tuples::tuple_iter::TupleCollect
source · pub trait TupleCollect<T> {
// Required methods
fn collect_tuple<B: TupleFromIter<T>>(self) -> B;
fn try_collect_tuple<B: TupleTryFromIter<T>>(self) -> Option<B>;
fn collect_tuple_try<B: TupleFromIterTry<T>>(self) -> B::OutTuple;
}
Required Methods§
sourcefn collect_tuple<B: TupleFromIter<T>>(self) -> B
fn collect_tuple<B: TupleFromIter<T>>(self) -> B
Like Iter<T> -> (T, T, T)
with panic on failure
sourcefn try_collect_tuple<B: TupleTryFromIter<T>>(self) -> Option<B>
fn try_collect_tuple<B: TupleTryFromIter<T>>(self) -> Option<B>
Like Iter<T> -> Option<(T, T, T)>
sourcefn collect_tuple_try<B: TupleFromIterTry<T>>(self) -> B::OutTuple
fn collect_tuple_try<B: TupleFromIterTry<T>>(self) -> B::OutTuple
Like Iter<T> -> (Option<T>, Option<T>, Option<T>)
Object Safety§
This trait is not object safe.