[][src]Trait replacer::rule::Rule

pub trait Rule {
    fn convert(&self, template: &str) -> Result<String>;
}

Generic way to add rules for a single file.

This trait can be implemented on a struct or enum for custom template handling.

Required methods

fn convert(&self, template: &str) -> Result<String>

Convert the matched values to a string.

Loading content...

Implementors

impl Rule for ExprRule[src]

impl Rule for StringRule[src]

impl Rule for StructRule[src]

impl Rule for TypeRule[src]

Loading content...