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