mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Create collections/str
This commit is contained in:
parent
3772ce496d
commit
53b38e301c
2 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
use std::hash::BuildHasherDefault;
|
||||
|
||||
pub mod str;
|
||||
|
||||
pub use fxhash::FxHasher;
|
||||
|
||||
#[inline(always)]
|
7
src/collections/str.rs
Normal file
7
src/collections/str.rs
Normal 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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue