Trait crowbook::Cleaner [] [src]

pub trait Cleaner {
    fn clean(&self, _: &mut String, _: bool) { ... }
}

Trait for cleaning a string. This trait should be called for text that is e.g. in a paragraph, a title, NOT for code blocks, hyperlinks and so on!

Provided Methods

Cleans a string. The default implementation is to remove multiple consecutive whitespaces

Implementors