tuple in Rust
Tuples have a fixed length - once declared they cannot grow or shrink in size. The tuple index starts from 0. ``` fn main() { let tuple:(i32,f64,u8) = (-325,4.9,22); println!("{:?}",tuple); } ```
Tuples have a fixed length - once declared they cannot grow or shrink in size. The tuple index starts from 0. ``` fn main() { let tuple:(i32,f64,u8) = (-325,4.9,22); println!("{:?}",tuple); } ```