fractal::utils::string

Trait 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>,