pub trait NestedTupleFlatten: NestedTuple {
type Flattened;
type Unpacked;
// Required methods
fn flatten(self) -> Self::Flattened;
fn flatten_unpack(self) -> Self::Unpacked;
}
Expand description
Defines conversion of a nested tuple list to a regular tuple.
Required Associated Types§
Required Methods§
Sourcefn flatten_unpack(self) -> Self::Unpacked
fn flatten_unpack(self) -> Self::Unpacked
Same as flatten
, converts a nested tuple list to a regular tuple,
but additionally, it unpacks singleton tuples into their content ((item,)
-> item
).