pub(crate) trait StrExt {
// Required methods
fn escape_markup(&self) -> String;
fn collapse_whitespaces(&self, trim_start: bool, trim_end: bool) -> 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 collapse_whitespaces(&self, trim_start: bool, trim_end: bool) -> String
fn collapse_whitespaces(&self, trim_start: bool, trim_end: bool) -> String
Collapse contiguous whitespaces in this string into a single space.