1 unstable release
Uses old Rust 2015
0.1.0 | Feb 23, 2018 |
---|
#131 in #immutability
9KB
209 lines
rs-immut_string
immutable string
extern crate immut_string;
use immut_string::ImmutString;
fn main() {
let a: ImmutString = "Hello".into();
let b = ImmutString::from(", world!");
let c = a + b;
assert_eq!(c, "Hello, world!");
assert_eq!(c.len(), 13);
}