Trait protocoll::Str
[−]
[src]
pub trait Str { fn inc(self, c: char) -> Self; fn dec(self) -> Self; fn plus(self, s: &str) -> Self; fn zero(self) -> Self; fn shrink(self) -> Self; }
basic protocol for strs;
Required Methods
fn inc(self, c: char) -> Self
appends char c
.
fn dec(self) -> Self
pops the last char.
fn plus(self, s: &str) -> Self
appends str s
.
fn zero(self) -> Self
clear
.
fn shrink(self) -> Self
shrink_to_fit
.
Implementors
impl Str for String