StringExt

Trait StringExt 

Source
pub trait StringExt {
    // Required method
    fn expand_tabs(&self, tab_size: u16) -> Cow<'_, str>;

    // Provided method
    fn expand_tabs_default(&self) -> Cow<'_, str> { ... }
}

Required Methods§

Source

fn expand_tabs(&self, tab_size: u16) -> Cow<'_, str>

Provided Methods§

Implementors§

Source§

impl<T> StringExt for T
where T: AsRef<str>,