How to create tuple of tuples in Rust

1 Answer

0 votes
fn main() {
    let tuple_of_tuples = ((1, 2, 3), (7, -21, "rust"), 3.14);

    println!("{:?}", tuple_of_tuples);
}





/*
run:

((1, 2, 3), (7, -21, "rust"), 3.14)

*/

 



answered May 3, 2023 by avibootz

Related questions

2 answers 139 views
139 views asked May 3, 2023 by avibootz
3 answers 221 views
3 answers 211 views
1 answer 108 views
...