Trait FormatString

Source
pub trait FormatString {
    // Required methods
    fn is_empty(&self) -> bool;
    fn at(&self, index: usize) -> Option<char>;
    fn advance_by(&mut self, n: usize);
    fn take_literal<'a: 'b, 'b>(&'a mut self, buffer: &'b mut String) -> &'b str;
}

Required Methods§

Source

fn is_empty(&self) -> bool

Source

fn at(&self, index: usize) -> Option<char>

Source

fn advance_by(&mut self, n: usize)

Source

fn take_literal<'a: 'b, 'b>(&'a mut self, buffer: &'b mut String) -> &'b str

Implementations on Foreign Types§

Source§

impl FormatString for &str

Source§

fn is_empty(&self) -> bool

Source§

fn at(&self, index: usize) -> Option<char>

Source§

fn advance_by(&mut self, n: usize)

Source§

fn take_literal<'a: 'b, 'b>(&'a mut self, _buffer: &'b mut String) -> &'b str

Implementors§