Enum rustc_ap_rustc_ast::util::parser::AssocOp [−][src]
pub enum AssocOp {}Show variants
Add, Subtract, Multiply, Divide, Modulus, LAnd, LOr, BitXor, BitAnd, BitOr, ShiftLeft, ShiftRight, Equal, Less, LessEqual, NotEqual, Greater, GreaterEqual, Assign, AssignOp(BinOpToken), As, DotDot, DotDotEq, Colon,
Expand description
Associative operator with precedence.
This is the enum which specifies operator precedence and fixity to the parser.
Variants
+
-
*
/
%
&&
||
^
&
|
<<
>>
==
<
<=
!=
>
>=
=
AssignOp(BinOpToken)
?=
where ? is one of the BinOpToken
as
..
range
..=
range
:
Implementations
Creates a new AssocOP from a token
Creates a new AssocOp from ast::BinOpKind.
Gets the precedence of this operator
This operator could be used to follow a block unambiguously.
This is used for error recovery at the moment, providing a suggestion to wrap blocks with parentheses while having a high degree of confidence on the correctness of the suggestion.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AssocOp
impl UnwindSafe for AssocOp
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V