hipstr 0.8.0

Yet another string for Rust: zero-cost borrow and slicing, inline representation for small strings, (atomic) reference counting
Documentation
1
2
3
4
5
6
7
8
use super::*;

#[test]
fn test_clone() {
    let a = Borrowed::new(b"abc");
    let b = a.clone();
    assert_eq!(a.as_slice(), b.as_slice());
}