pub(crate) fn when(mut self, cond: fn(&SyntaxElement) -> bool) -> SpacingRuleBuilder<'a> {
        let pred = cond.into();
        let prev = self.child.take().unwrap();
        self.child = Some(prev & pred);
        self
    }
/// The rule applies if the `cond` is true.
The rule applies if the `cond` is true.
The rule applies if the ` cond ` is true .
pub(crate) fn when(mut self, cond: fn(&SyntaxElement) -> bool) -> SpacingRuleBuilder<'a> {
        let pred = cond.into();
        let prev = self.child.take().unwrap();
        self.child = Some(prev & pred);
        self
    }
pub ( crate ) fn when ( mut self , cond : fn ( & SyntaxElement ) -> bool ) -> SpacingRuleBuilder < ' a > { let pred = cond . into ( ) ; let prev = self . child . take ( ) . unwrap ( ) ; self . child = Some ( prev & pred ) ; self }
The rule applies if the `cond` is true.
The rule applies if the ` cond ` is true .
mut self
cond
fn(&SyntaxElement) -> bool