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: Option<u16>
kind: OperatorKind
Methods
impl OperatorOptions
[src]
fn new_binary(
chars: &'static str,
precedence: u16,
associativity: Associativity
) -> OperatorOptions
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
impl Debug for OperatorOptions
[src]
impl Copy for OperatorOptions
[src]
impl Clone for OperatorOptions
[src]
fn clone(&self) -> OperatorOptions
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