• Struts
  • Spring
  • RubyonRails
  • Java IO
  • jQuery
  • JavaScript
  • JSP
  • PHP
  • SQL Tutorial

  • <

    Rust Tuple

    Tuple is used to store only one type of data.Tuples are in fixed length.Once declared they cannot changed.


    Rust Tuple Example


    fn main() {
       let tuple:(i32,f64,u8) = (1,1.0,22);
       println!("{:?}",tuple.0);
       println!("{:?}",tuple.1);
       println!("{:?}",tuple.2);
    }
    

    Output:
    1
    1.0
    22
    

    capture
















    © copyright 2017-2021 Completedone pvt ltd.