Struct twig::operator::Operator
[−]
[src]
pub struct Operator { pub options: OperatorOptions, pub callable: Callable, }
Represents environment operator.
Fields
options: OperatorOptions
Operator options.
callable: Callable
Operator callable.
Methods
impl Operator
[src]
fn new_binary<F: 'static>(
chars: &'static str,
precedence: u16,
associativity: Associativity,
callable: F
) -> Operator where
F: for<'e> Fn(&'e Value, &'e Value) -> RuntimeResult<Value>,
chars: &'static str,
precedence: u16,
associativity: Associativity,
callable: F
) -> Operator where
F: for<'e> Fn(&'e Value, &'e Value) -> RuntimeResult<Value>,
fn new_binary_left<F: 'static>(
chars: &'static str,
precedence: u16,
callable: F
) -> Operator where
F: for<'e> Fn(&'e Value, &'e Value) -> RuntimeResult<Value>,
chars: &'static str,
precedence: u16,
callable: F
) -> Operator where
F: for<'e> Fn(&'e Value, &'e Value) -> RuntimeResult<Value>,
fn new_binary_right<F: 'static>(
chars: &'static str,
precedence: u16,
callable: F
) -> Operator where
F: for<'e> Fn(&'e Value, &'e Value) -> RuntimeResult<Value>,
chars: &'static str,
precedence: u16,
callable: F
) -> Operator where
F: for<'e> Fn(&'e Value, &'e Value) -> RuntimeResult<Value>,
fn new_unary<F: 'static>(
chars: &'static str,
precedence: u16,
callable: F
) -> Operator where
F: for<'e> Fn(&'e Value) -> RuntimeResult<Value>,
chars: &'static str,
precedence: u16,
callable: F
) -> Operator where
F: for<'e> Fn(&'e Value) -> RuntimeResult<Value>,