[][src]Trait ress::tokens::TemplateExt

pub trait TemplateExt<T> {
    fn no_sub_template(content: T) -> Template<T>;
fn template_head(content: T) -> Template<T>;
fn template_middle(content: T) -> Template<T>;
fn template_tail(content: T) -> Template<T>;
fn is_head(&self) -> bool;
fn is_middle(&self) -> bool;
fn is_tail(&self) -> bool;
fn is_no_sub(&self) -> bool; }

Extension methods for allowing Template to work with both &str and String

Required methods

fn no_sub_template(content: T) -> Template<T>

fn template_head(content: T) -> Template<T>

fn template_middle(content: T) -> Template<T>

fn template_tail(content: T) -> Template<T>

fn is_head(&self) -> bool

fn is_middle(&self) -> bool

fn is_tail(&self) -> bool

fn is_no_sub(&self) -> bool

Loading content...

Implementors

impl TemplateExt<String> for Template<String>[src]

impl<'a> TemplateExt<&'a str> for Template<&'a str>[src]

Loading content...