Enum pupil::op::Operator [] [src]

#[repr(u8)]
pub enum Operator { Add, Sub, Mul, Div, Rem, IMul, Pow, }

Supported operator types.

Variants

+

-

Also doubles as unary negation, disambiguated at parser level.

*

/

%

Implicit multiplication.

Created on the fly as needed by the parser.

^

Methods

impl Operator
[src]

Get a descriptor for an operator.

Trait Implementations

impl Copy for Operator
[src]

impl Clone for Operator
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Operator
[src]

Formats the value using the given formatter.

impl Eq for Operator
[src]

impl PartialEq for Operator
[src]

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

This method tests for !=.