Crate cursed_strings

Source
Expand description

The one and only string type in Rust

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

Modules§

chars
string_base

Type Aliases§

String
str