The precedence at which a prefix operator (`Op` with no second operand) parses its operand, mirroring `Parser::parse_prefix`: `-`/`+` at `PrefixPlusMinus`, but `~` (and namespaced prefixes) at `Other`, so `~ a + b` parses as `~ (a + b)`. `~` binds looser than `+`/`-`/`*`.
(op: &Op)
| 719 | /// `PrefixPlusMinus`, but `~` (and namespaced prefixes) at `Other`, so `~ a + b` |
| 720 | /// parses as `~ (a + b)`. `~` binds looser than `+`/`-`/`*`. |
| 721 | fn unary_prec(op: &Op) -> u8 { |
| 722 | if op.namespace.is_none() && (op.op == "-" || op.op == "+") { |
| 723 | prec::PREFIX |
| 724 | } else { |
| 725 | prec::OTHER |
| 726 | } |
| 727 | } |
| 728 | |
| 729 | /// The loosest precedence exposed on `expr`'s *right spine*, the precedence at |
| 730 | /// which an operator printed immediately to its right would bind *into* it |