To my knowledge there is no non-panicking equivalent of
&buf[start..end] in the stdlib. Have I got this right? Would this be considered as a PR?
I asked on IRC and the first response turned out to have 2 bugs, which I guess is a datapoint in having it included in the stdlib: https://botbot.me/mozilla/rust/2015-09-21/?msg=50158708&page=10
(I wanted this today because I need to add some experimental code to an existing production process which cannot afford to fail. I want to reduce the chance of panicing in the new experimental code as much as possible.)