• Struts
  • Core Java
  • Java IO
  • SQL Tutorial
  • JavaScript
  • PHP
  • RubyonRails
  • Spring
  • Servlet

  • <

    Rust Slice

    Slice is used to contiguous memory allocation.It is used with data structures like arrays, vectors and strings.

    Slices behave like arrays.Slice size determined at run time.Slices are pointers to the actual data.

    Rust Slice Example

    fn main() {
       let n1 = "world".to_string();
       println!("length of string is {}",n1.len());
       let c1 = &n1[2..3];   


    © copyright 2017-2021 Completedone pvt ltd.