slice
Dynamically sized view into a contiguous sequence of elements.
e.g.
let number_slices :&[i32] = &[1,2,3,4,5];
println!("A number slice: {:?}", number_slices);
let animal_slices :&[&str] = &["lion","elephant","crocodile"];
println!("An animal slice: {:?}", animal_slices);
let book_slices :&[&String] = &[&"The Giver".to_string(), &"Hunger Games".to_string(), &"Divergent".to_string()];
println!("An book slice: {:?}", book_slices);
A number slice: [1, 2, 3, 4, 5]
An animal slice: ["lion", "elephant", "crocodile"]
An book slice: ["The Giver", "Hunger Games", "Divergent"]