ref_slice 1.2.1

Turn a reference into a slice of length one.
Documentation

ref_slice

Documentation Crates.io

Small utility functions for getting slices of length one.

This used to be in the standard library, but was removed. So here you go!

There are also versions that work on Option<T> as well.