cursed_strings 0.1.1

Annoyed that Rust has two string types? Well it doesn't any more
Documentation
  • Coverage
  • 16.67%
    2 out of 12 items documented1 out of 8 items with examples
  • Size
  • Source code size: 9.63 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.44 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • conradludgate

The one and only string type in Rust

# use cursed_strings::str; use std::ops::Deref;
let foo: &str = "foo".into();
let expected: &str = "foobar".into();

let mut foobar = foo.to_owned();
foobar.push_str("bar".into());

assert_eq!(foobar.deref(), expected);