Enum pupil::op::Order [] [src]

#[repr(i8)]
pub enum Order { FnBarrier, Operators, AddSub, MulDiv, IMul, Pow, PowRightAssoc, Unary, }

Operator precedence.

Variants

Function barrier hack.

Prevents precedence rules from pushing past a function application. Only an explicit closing ) can push past it.

Lowest precedence for operators, helper for FnBarrier.

Addition and subtraction precedence.

Multiplication and division precedence.

Implicit multiplication precedence.

This makes implicit mul bind tightly under division allowing 1/2ans to be evaulated as 1/(2*ans). But not high enough to overpower exponentiation so 2ans^3 will be evaluated as 2*(ans^3).

Exponentiation precedence.

Helper for Pow’s right associativity.

Unary operator precedence.

Trait Implementations

impl Copy for Order
[src]

impl Clone for Order
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Order
[src]

Formats the value using the given formatter.

impl Eq for Order
[src]

impl PartialEq for Order
[src]

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

This method tests for !=.

impl Ord for Order
[src]

This method returns an Ordering between self and other. Read more

impl PartialOrd for Order
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more