6 releases (stable)

Uses old Rust 2015

1.2.1 Apr 29, 2021
1.2.0 Sep 29, 2019
1.1.1 Nov 3, 2016
1.1.0 Sep 2, 2016
0.1.0 Oct 23, 2015

#63 in #turn

Download history 4535/week @ 2024-07-20 5517/week @ 2024-07-27 5028/week @ 2024-08-03 3461/week @ 2024-08-10 3401/week @ 2024-08-17 2917/week @ 2024-08-24 4579/week @ 2024-08-31 3473/week @ 2024-09-07 2971/week @ 2024-09-14 3226/week @ 2024-09-21 3536/week @ 2024-09-28 3315/week @ 2024-10-05 3131/week @ 2024-10-12 4260/week @ 2024-10-19 3038/week @ 2024-10-26 2824/week @ 2024-11-02

13,824 downloads per month
Used in 46 crates (10 directly)

Apache-2.0/MIT

5KB
76 lines

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.

No runtime deps