str-intern 0.0.2

A simple string interner
Documentation
1
2
3
4
5
6
7
8
9
10
use std::sync::Arc;

use str_intern::sync::*;

#[test]
fn main() {
  let s0 = intern("Hello World!".to_string());
  let s1 = "Hello World!".intern();
  assert!(Arc::ptr_eq(&s0, &s1));
}