Add examples for some StrSlice methods.
auto merge of #16618 : nham/rust/strslice_examples, r=alexcrichton

(By chance, the `contains` example was actually what I was trying to write when I discovered #16589)