Crates.io | ref_slice |
lib.rs | ref_slice |
version | 1.2.1 |
source | src |
created_at | 2015-10-23 12:26:34.255431 |
updated_at | 2021-04-29 19:27:42.141604 |
description | Turn a reference into a slice of length one. |
homepage | https://github.com/steveklabnik/ref_slice |
repository | https://github.com/steveklabnik/ref_slice |
max_upload_size | |
id | 3291 |
size | 4,329 |
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.