Crate mutstr

Crate mutstr 

Source
Expand description

MutStr MutStr is a mutable alternative for &str.

  • &str
  • MutStr
    • uses 16 bytes.
  • String
    • uses 24 bytes.

§Example

use mutstr::mutstr;
let mut result = mutstr::from("friend"); // Create
result += " :) :) :)"; // Add
result -= (2, " :)"); // Remove(2 times)
assert_eq!(result.as_str(), "friend :)");

Structs§

mutstr
Example