Trait fish_printf::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§