immut_string 0.1.0

immutable string
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 9.21 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.88 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • nathanfaucett/rs-immut_string
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nathanfaucett

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);
}