Rewrite vec.contains() to be simpler
Implement new methods vec.starts_with()/vec.ends_with()
Rewrite str.starts_with()/ends_with() to be simpler
auto merge of #9907 : kballard/rust/vec_ends_with, r=alexcrichton