Add slice_from and slice_to methods for vec, like the
methods of the same names that already exist for strs.
auto merge of #7943 : Dretch/rust/vec-slice-from-to, r=huonw