Struct tera::Context [] [src]

pub struct Context {
    // some fields omitted
}

Methods

impl Context
[src]

fn new() -> Context

fn add<T: Serialize>(&mut self, key: &str, d: &T)

fn as_json(&self) -> Json

Trait Implementations

impl Clone for Context
[src]

fn clone(&self) -> Context

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

impl Debug for Context
[src]

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

Formats the value using the given formatter.

impl Default for Context
[src]

fn default() -> Context

Returns the "default value" for a type. Read more