Crate switchstring[][src]

Expand description

strings you can subtract

i promise this is something you need in your life, $100%

example

use switchstring::Switchstring;

let a = "I promise I love maths";
let b = "maths";
let c = "cute rustaceans such as ferris";
let d: Switchstring = "I promise ".into();
let improved = String::from(-d + a - b + c);
assert_eq!("I love cute rustaceans such as ferris", improved);

Structs

Switchstring

a string you can subtract from. you can add or subtract Strings or &strs or other Switchstrings from these.