Struct twig::operator::OperatorOptions [] [src]

pub struct OperatorOptions {
    pub precedence: Option<u16>,
    pub kind: OperatorKind,
}

Operator options for parsing, sets precedence and weather it is unary/binary.

Fields

precedence
kind

Methods

impl OperatorOptions

fn new_binary(chars: &'static str, precedence: u16, associativity: Associativity) -> OperatorOptions

fn new_binary_left(chars: &'static str, precedence: u16) -> OperatorOptions

fn new_binary_right(chars: &'static str, precedence: u16) -> OperatorOptions

fn new_unary(chars: &'static str, precedence: u16) -> OperatorOptions

fn new_other() -> OperatorOptions

Trait Implementations

Derived Implementations

impl Clone for OperatorOptions

fn clone(&self) -> OperatorOptions

fn clone_from(&mut self, source: &Self)

impl Copy for OperatorOptions

impl Debug for OperatorOptions

fn fmt(&self, __arg_0: &mut Formatter) -> Result