A Rust string slice is a reference to part of a String
let s = String::from("hello world"); // a String
let hello: &str = &s[0..5]; // a string slicelet world: &str = &s[6..11];let s2: &String = &s; // a normal reference to a whole string
// string literals are also sliceslet s_literal = "Hello, world!"; // this guy is a &strSlices are special kinds of references because they are “fat” pointers, or pointers with metadata, which in this case is the length of the slice.