Trait superfilter::ast::transform::TransformResult [] [src]

pub trait TransformResult {
    fn render(&self, ctx: RenderContext, buf: &mut Write) -> Result<(), Error>;

    fn return_value(&self) -> ScopeValue { ... }
}

Fully transformed AST structures should implement this trait in order to be renderable and make their result available for use in parent nodes

Required Methods

Renders the output for this node into a writable stream.

Provided Methods

Returns the return value of this AST structure if it has one. The return value of this function can be used in parent structures that base their transformation on the result of child nodes.

Implementors