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

#68 in #turn

Download history 3550/week @ 2024-03-14 5123/week @ 2024-03-21 3185/week @ 2024-03-28 2751/week @ 2024-04-04 2576/week @ 2024-04-11 2373/week @ 2024-04-18 1936/week @ 2024-04-25 2300/week @ 2024-05-02 2396/week @ 2024-05-09 3169/week @ 2024-05-16 2871/week @ 2024-05-23 3608/week @ 2024-05-30 3798/week @ 2024-06-06 2612/week @ 2024-06-13 3317/week @ 2024-06-20 3421/week @ 2024-06-27

14,027 downloads per month
Used in 45 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