Trait fractal::utils::string::StrExt

source ·
pub trait StrExt {
    // Required methods
    fn escape_markup(&self) -> String;
    fn remove_newlines(&self) -> String;
}
Expand description

Common extensions to strings.

Required Methods§

source

fn escape_markup(&self) -> String

Escape markup for compatibility with Pango.

source

fn remove_newlines(&self) -> String

Remove newlines from the string.

Implementors§

source§

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