Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steveklabnik/ref_slice
Take a reference and get back a slice of length one
https://github.com/steveklabnik/ref_slice
Last synced: 17 days ago
JSON representation
Take a reference and get back a slice of length one
- Host: GitHub
- URL: https://github.com/steveklabnik/ref_slice
- Owner: steveklabnik
- Created: 2015-10-23T12:25:57.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T19:26:57.000Z (over 3 years ago)
- Last Synced: 2024-10-10T20:19:25.089Z (about 1 month ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 26
- Watchers: 6
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ref\_slice
[![Documentation](https://docs.rs/ref_slice/badge.svg)](https://docs.rs/ref_slice)
[![Crates.io](https://img.shields.io/crates/v/ref_slice.svg)](https://crates.io/crates/ref_slice)Small utility functions for getting slices of length one.
This [used to be in the standard library][ref], but was removed. So here you go!
There are also versions that work on `Option` as well.
[ref]: https://github.com/rust-lang/rust/issues/27774#issuecomment-150058618