pub trait TupleCollect<T> {
// Required methods
fn collect_tuple<B>(self) -> B
where B: TupleFromIter<T>;
fn try_collect_tuple<B>(self) -> Option<B>
where B: TupleTryFromIter<T>;
fn collect_tuple_try<B>(self) -> <B as TupleFromIterTry<T>>::OutTuple
where B: TupleFromIterTry<T>;
}Required Methods§
Sourcefn collect_tuple<B>(self) -> Bwhere
B: TupleFromIter<T>,
fn collect_tuple<B>(self) -> Bwhere
B: TupleFromIter<T>,
Such as Iter<T> -> (T, T, T), panic on failure
Sourcefn try_collect_tuple<B>(self) -> Option<B>where
B: TupleTryFromIter<T>,
fn try_collect_tuple<B>(self) -> Option<B>where
B: TupleTryFromIter<T>,
Such as Iter<T> -> Option<(T, T, T)>
Sourcefn collect_tuple_try<B>(self) -> <B as TupleFromIterTry<T>>::OutTuplewhere
B: TupleFromIterTry<T>,
fn collect_tuple_try<B>(self) -> <B as TupleFromIterTry<T>>::OutTuplewhere
B: TupleFromIterTry<T>,
Such as Iter<T> -> (Option<T>, Option<T>, Option<T>)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.