Create collections/str

This commit is contained in:
Richard Feldman 2019-09-14 22:06:13 -04:00
parent 3772ce496d
commit 53b38e301c
2 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,7 @@
use std::hash::BuildHasherDefault;
pub mod str;
pub use fxhash::FxHasher;
#[inline(always)]

7
src/collections/str.rs Normal file
View file

@ -0,0 +1,7 @@
pub struct Str(pub str);
impl<'a> Into<&'a str> for &'a Str {
fn into(self) -> &'a str {
&self.0
}
}