Enum twig::operator::OperatorKind [] [src]

pub enum OperatorKind {
    Unary {
        value: &'static str,
    },
    Binary {
        value: &'static str,
        associativity: Associativity,
    },
    Other,
}

Operator kind.

Variants

Single argument operator, i.e negation.

Fields of Unary

Two argument operator, i.e sum.

Fields of Binary

Any operator handled by extension (i.e. the "=" operator).

Methods

impl OperatorKind
[src]

Trait Implementations

impl PartialEq for OperatorKind
[src]

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

This method tests for !=.

impl Debug for OperatorKind
[src]

Formats the value using the given formatter.

impl Copy for OperatorKind
[src]

impl Clone for OperatorKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more