[][src]Trait flatten::Flatten

pub trait Flatten: Sized + IntoCons {
    type Flattened;
    fn flatten(self) -> Self::Flattened;
}

Associated Types

type Flattened

Type of tuple after flattening.

Loading content...

Required methods

fn flatten(self) -> Self::Flattened

Examples

 use flatten::Flatten;
 "".flatten();
 assert_eq!((1, 2, 3, 4), (1, (2, 3), 4).flatten());
 assert_eq!((1, 2, 3, 4), (1, (2, (3,)), ((4,),)).flatten());
Loading content...

Implementors

impl<Tup> Flatten for Tup where
    ConsOf<Self>: IntoTuple<Self>, 
[src]

type Flattened = TupleOf<ConsOf<Self>, Self>

Loading content...