[][src]Trait libslide::grammar::transformer::ExpressionTransformer

pub trait ExpressionTransformer<'a> {
    fn transform(&self, expr: &'a RcExpr) -> RcExpr { ... }
fn transform_const(&self, konst: &f64, span: Span) -> RcExpr { ... }
fn transform_var(&self, var: &'a InternedStr, span: Span) -> RcExpr { ... }
fn transform_binary_op(&self, op: BinaryOperator) -> BinaryOperator { ... }
fn transform_binary(
        &self,
        expr: &'a BinaryExpr<RcExpr>,
        span: Span
    ) -> RcExpr { ... }
fn transform_unary_op(&self, op: UnaryOperator) -> UnaryOperator { ... }
fn transform_unary(&self, expr: &'a UnaryExpr<RcExpr>, span: Span) -> RcExpr { ... }
fn transform_parend(&self, expr: &'a RcExpr, span: Span) -> RcExpr { ... }
fn transform_bracketed(&self, expr: &'a RcExpr, span: Span) -> RcExpr { ... } }

A trait for transforming one expression into another.

Provided methods

fn transform(&self, expr: &'a RcExpr) -> RcExpr

fn transform_const(&self, konst: &f64, span: Span) -> RcExpr

fn transform_var(&self, var: &'a InternedStr, span: Span) -> RcExpr

fn transform_binary_op(&self, op: BinaryOperator) -> BinaryOperator

fn transform_binary(&self, expr: &'a BinaryExpr<RcExpr>, span: Span) -> RcExpr

fn transform_unary_op(&self, op: UnaryOperator) -> UnaryOperator

fn transform_unary(&self, expr: &'a UnaryExpr<RcExpr>, span: Span) -> RcExpr

fn transform_parend(&self, expr: &'a RcExpr, span: Span) -> RcExpr

fn transform_bracketed(&self, expr: &'a RcExpr, span: Span) -> RcExpr

Loading content...

Implementors

impl<'a> ExpressionTransformer<'a> for EagerVariableExpander<'a>[src]

impl<'a> ExpressionTransformer<'a> for LazyVariableExpander<'a>[src]

Loading content...