Struct twig::environment::Environment [] [src]

pub struct Environment {
    pub operators: Vec<Operator>,
    pub token_parsers: Vec<TokenParser>,
    pub functions: Vec<Function>,
}

Project configuration container.

Fields

operators
token_parsers
functions

Methods

impl Environment

fn new(config: Config) -> Environment

fn default() -> Environment

fn init_all(self) -> CompiledEnvironment

fn push_operators<I: IntoIterator<Item=Operator>>(&mut self, ops: I)

fn push_token_parsers<I: IntoIterator<Item=TokenParser>>(&mut self, ops: I)

fn push_functions<I: IntoIterator<Item=Function>>(&mut self, funs: I)

Trait Implementations

Derived Implementations

impl Debug for Environment

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