Crates.io | immut_string |
lib.rs | immut_string |
version | 0.1.0 |
source | src |
created_at | 2018-02-23 15:11:10.889395 |
updated_at | 2018-02-23 15:11:10.889395 |
description | immutable string |
homepage | https://gitlab.com/nathanfaucett/rs-immut_string |
repository | https://gitlab.com/nathanfaucett/rs-immut_string.git |
max_upload_size | |
id | 52530 |
size | 9,580 |
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);
}