concat_tuple

Crates.ioconcat_tuple
lib.rsconcat_tuple
version0.1.1
sourcesrc
created_at2023-12-15 08:41:23.250333
updated_at2023-12-15 09:41:15.274566
descriptionA meta utility to concat and/or save tuple information
homepage
repository
max_upload_size
id1070808
size8,205
(xmh0511)

documentation

README

use concat_tuple::{concat_tuple, Combine, Product, ProductList, Tuple};

fn main() {
    type TT = <(u32, char) as Tuple>::ProductList;
    let t: Product<u32, Product<char, ()>> = TT::default();
    type T3 = <TT as Combine<Product<String, ()>>>::Output;
    let t: (u32, char, String) = <<T3 as ProductList>::Tuple>::default();
    let t: Product<u32, Product<char, Product<String, ()>>> = T3::default();
    let t: (u32, char, String) = t.as_tuple();
    let t: Product<u32, Product<char, Product<String, ()>>> = t.as_product();
    let t: (i32, char, String, i32, u8, f64) = concat_tuple((1, 'c'), (String::new(),1,2u8,3f64));
}

Commit count: 0

cargo fmt