pub fn apply_rules(text: &str, rules: &[FilterRule]) -> String {
    let mut prev = text.to_string();
    let mut result = apply_once(text.to_string(), rules);
    while result != prev {
        prev.clear();
        prev.push_str(&result);
        result = apply_once(result, rules);
    }
    result
}
/// Apply a list of filter rules until the result doesn't change anymore.
Apply a list of filter rules until the result doesn't change anymore.
Apply a list of filter rules until the result doesn ' t change anymore .
pub fn apply_rules(text: &str, rules: &[FilterRule]) -> String {
    let mut prev = text.to_string();
    let mut result = apply_once(text.to_string(), rules);
    while result != prev {
        prev.clear();
        prev.push_str(&result);
        result = apply_once(result, rules);
    }
    result
}
pub fn apply_rules ( text : & str , rules : & [ FilterRule ] ) -> String { let mut prev = text . to_string ( ) ; let mut result = apply_once ( text . to_string ( ) , rules ) ; while result != prev { prev . clear ( ) ; prev . push_str ( & result ) ; result = apply_once ( result , rules ) ; } result }
Apply a list of filter rules until the result doesn't change anymore.
Apply a list of filter rules until the result doesn ' t change anymore .
text
&str
rules
&[FilterRule]
text
&str
rules
&[FilterRule]