pub trait BinTuple {
type LeftAssociated;
type RightAssociated;
}Expand description
Reshape the linear tuple type to a binary tree, either left associated or right associated.
§Examples
use tuplex::*;
let _: ((((),bool), i32), String) = <(bool, i32, String) as BinTuple>::LeftAssociated::default();
let _: (bool, (i32, (String,()))) = <(bool, i32, String) as BinTuple>::RightAssociated::default();