Struct trimmer::Var [] [src]

pub struct Var<'a, 'render: 'a>(_);

Variable reference returned from methods of Variable trait

It can contain borrowed reference from current variable or owned (reference counted) box to another object

Methods

impl<'a, 'render> Var<'a, 'render>
[src]

Embed and owned reference to a value

Embed a static string as a variable

Currently this uses reference counted object that contains pointer, but we want to figure out better way to reference static strings

Create a borrowed reference to the variable

Create an undefined variable reference

Create a variable that contains an empty string

Create a variable that boolean true

Create a variable that boolean false