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
fn render(&self, ctx: RenderContext, buf: &mut Write) -> Result<(), Error>
Renders the output for this node into a writable stream.
Provided Methods
fn return_value(&self) -> ScopeValue
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
impl TransformResult for PlainSetValueStatement
impl TransformResult for PlainConditionStatement
impl TransformResult for ComparisonOperator
impl TransformResult for PlainBlock
impl TransformResult for String
impl TransformResult for TransformedNode
impl TransformResult for Comment
impl TransformResult for Option<Comment>
impl TransformResult for Vec<TransformedNode>
impl TransformResult for i64
impl TransformResult for f64
impl TransformResult for bool
impl TransformResult for &'static NoValue
impl TransformResult for Vec<ScopeValue>