pub trait Collate {
type Collated;
// Required method
fn collated(self) -> Self::Collated;
}
Expand description
Collates Self
into some other type.
Generally similar to an unzip method;
Transforms [(A, B); N]
into ([A; N], [B; N])
;
Transforms Vec<(A, B)>
into (Vec<A>, Vec<B>)
.