Enum syntax::util::parser::AssocOp[][src]

pub enum AssocOp {
    Add,
    Subtract,
    Multiply,
    Divide,
    Modulus,
    LAnd,
    LOr,
    BitXor,
    BitAnd,
    BitOr,
    ShiftLeft,
    ShiftRight,
    Equal,
    Less,
    LessEqual,
    NotEqual,
    Greater,
    GreaterEqual,
    Assign,
    ObsoleteInPlace,
    AssignOp(BinOpToken),
    As,
    DotDot,
    DotDotEq,
    Colon,
}

Associative operator with precedence.

This is the enum which specifies operator precedence and fixity to the parser.

Variants

+

-

*

/

%

&&

||

^

&

|

<<

>>

==

<

<=

!=

>

>=

=

<-

?= where ? is one of the BinOpToken

as

.. range

..= range

:

Methods

impl AssocOp
[src]

Create a new AssocOP from a token

Create a new AssocOp from ast::BinOpKind.

Gets the precedence of this operator

Gets the fixity of this operator

Trait Implementations

impl Debug for AssocOp
[src]

Formats the value using the given formatter. Read more

impl PartialEq for AssocOp
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for AssocOp
[src]

Auto Trait Implementations

impl Send for AssocOp

impl Sync for AssocOp