Optimize `from_slice()`.
Use lifetime elision in `as_slice`.