Skip to main content

FormattedBodyExt

Trait FormattedBodyExt 

Source
pub(crate) trait FormattedBodyExt {
    // Required method
    fn clean_string(&mut self);
}
Expand description

Extension trait for Option<FormattedBody>.

Required Methods§

Source

fn clean_string(&mut self)

Clean the body in the FormattedBody.

Replaces it with None if the body is empty after being cleaned.

Implementations on Foreign Types§

Source§

impl FormattedBodyExt for Option<FormattedBody>

Source§

fn clean_string(&mut self)

Implementors§