Enum twig::operator::OperatorKind
[−]
[src]
pub enum OperatorKind { Unary { value: &'static str, }, Binary { value: &'static str, associativity: Associativity, }, Other, }
Operator kind.
Variants
Unary
Single argument operator, i.e negation.
Fields of Unary
value: &'static str |
Binary
Two argument operator, i.e sum.
Fields of Binary
value: &'static str | |
associativity: Associativity |
Other
Any operator handled by extension (i.e. the "=" operator).
Methods
impl OperatorKind
[src]
fn new_binary(value: &'static str, associativity: Associativity) -> OperatorKind
fn new_binary_left(value: &'static str) -> OperatorKind
fn new_binary_right(value: &'static str) -> OperatorKind
fn new_unary(value: &'static str) -> OperatorKind
fn new_other() -> OperatorKind
Trait Implementations
impl PartialEq for OperatorKind
[src]
fn eq(&self, __arg_0: &OperatorKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &OperatorKind) -> bool
This method tests for !=
.
impl Debug for OperatorKind
[src]
impl Copy for OperatorKind
[src]
impl Clone for OperatorKind
[src]
fn clone(&self) -> OperatorKind
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