pub fn is_callable(&self, callable: bool) -> bool {
        match self {
            Self::While(_) => false,
            Self::Loop(_) => callable,
            Self::For(_) => false,
            Self::If(_) => callable,
            Self::Match(_) => callable,
            Self::Select(_) => callable,
            Self::ForceSemi(expr) => expr.expr.is_callable(callable),
            _ => true,
        }
    }
/// Indicates if an expression is callable unless it's permitted by an
/// override.
Indicates if an expression is callable unless it's permitted by an
override.
Indicates if an expression is callable unless it ' s permitted by an override .
pub fn is_callable(&self, callable: bool) -> bool {
        match self {
            Self::While(_) => false,
            Self::Loop(_) => callable,
            Self::For(_) => false,
            Self::If(_) => callable,
            Self::Match(_) => callable,
            Self::Select(_) => callable,
            Self::ForceSemi(expr) => expr.expr.is_callable(callable),
            _ => true,
        }
    }
pub fn is_callable ( & self , callable : bool ) -> bool { match self { Self :: While ( _ ) => false , Self :: Loop ( _ ) => callable , Self :: For ( _ ) => false , Self :: If ( _ ) => callable , Self :: Match ( _ ) => callable , Self :: Select ( _ ) => callable , Self :: ForceSemi ( expr ) => expr . expr . is_callable ( callable ) , _ => true , } }
Indicates if an expression is callable unless it's permitted by an
override.
Indicates if an expression is callable unless it ' s permitted by an override .
&self
callable
bool
&self
callable
bool