pub trait StrExt {
// Required methods
fn escape_markup(&self) -> String;
fn remove_newlines(&self) -> String;
}
Expand description
Common extensions to strings.
Required Methods§
sourcefn escape_markup(&self) -> String
fn escape_markup(&self) -> String
Escape markup for compatibility with Pango.
sourcefn remove_newlines(&self) -> String
fn remove_newlines(&self) -> String
Remove newlines from the string.