Trait StringBuilder

Source
pub trait StringBuilder<'s> {
    // Required methods
    fn clear(&mut self);
    fn push_str(&mut self, append: &'s str) -> bool;
    fn push_char(&mut self, append: char) -> bool;
}

Required Methods§

Source

fn clear(&mut self)

Source

fn push_str(&mut self, append: &'s str) -> bool

Source

fn push_char(&mut self, append: char) -> bool

Implementations on Foreign Types§

Source§

impl<'s> StringBuilder<'s> for &'s str

Source§

fn clear(&mut self)

Source§

fn push_str(&mut self, append: &'s str) -> bool

Source§

fn push_char(&mut self, _append: char) -> bool

Source§

impl<'s> StringBuilder<'s> for Cow<'s, str>

Source§

fn clear(&mut self)

Source§

fn push_str(&mut self, append: &'s str) -> bool

Source§

fn push_char(&mut self, append: char) -> bool

Source§

impl<'s> StringBuilder<'s> for ()

Source§

fn clear(&mut self)

Source§

fn push_str(&mut self, _append: &'s str) -> bool

Source§

fn push_char(&mut self, _append: char) -> bool

Source§

impl<'s> StringBuilder<'s> for String

Source§

fn clear(&mut self)

Source§

fn push_str(&mut self, append: &'s str) -> bool

Source§

fn push_char(&mut self, append: char) -> bool

Implementors§