Enum pupil::op::Operator
[−]
[src]
#[repr(u8)]pub enum Operator { Add, Sub, Mul, Div, Rem, IMul, Pow, }
Supported operator types.
Variants
Add
+
Sub
-
Also doubles as unary negation, disambiguated at parser level.
Mul
*
Div
/
Rem
%
IMul
Implicit multiplication.
Created on the fly as needed by the parser.
Pow
^
Methods
impl Operator
[src]
Trait Implementations
impl Copy for Operator
[src]
impl Clone for Operator
[src]
fn clone(&self) -> Operator
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more