It would be cool if:
let s = b"hello";
let slc = &s[..100];
worked, and returned a slice of min(s.len(), 100) instead of panicing. This is the behavior I expected coming from Python.
This is useful for ensuring input is no larger than a certain size.