/// Obtain the precedence of a unary operator.
Obtain the precedence of a unary operator.
Obtain the precedence of a unary operator .
fn unary_prec(op: ast::UnaryOp) -> ExprPrec {
    match op {
        ast::UnaryOp::Not => ExprPrec::Unary,
        ast::UnaryOp::Abs => ExprPrec::Unary,
        ast::UnaryOp::Logical(_) => ExprPrec::Unary,
        ast::UnaryOp::Sign(_) => ExprPrec::Sign,
        ast::UnaryOp::Inertial => ExprPrec::Inertial,
        ast::UnaryOp::Condition => ExprPrec::Condition,
    }
}
fn unary_prec ( op : ast :: UnaryOp ) -> ExprPrec { match op { ast :: UnaryOp :: Not => ExprPrec :: Unary , ast :: UnaryOp :: Abs => ExprPrec :: Unary , ast :: UnaryOp :: Logical ( _ ) => ExprPrec :: Unary , ast :: UnaryOp :: Sign ( _ ) => ExprPrec :: Sign , ast :: UnaryOp :: Inertial => ExprPrec :: Inertial , ast :: UnaryOp :: Condition => ExprPrec :: Condition , } }
Obtain the precedence of a unary operator.
Obtain the precedence of a unary operator .
op
ast::UnaryOp