[][src]Trait crulz::mangle_ast::MangleAST

pub trait MangleAST: Default {
    fn to_str(self, escc: char) -> String;
fn get_complexity(&self) -> usize;
fn simplify(self) -> Self;
fn apply_arguments_inplace(
        &mut self,
        args: &CmdEvalArgs
    ) -> Result<(), usize>; fn take(&mut self) -> Self { ... }
fn simplify_inplace(&mut self) { ... } }

Required methods

fn to_str(self, escc: char) -> String

fn get_complexity(&self) -> usize

helper for MangleAST::simplify and interp::eval

fn simplify(self) -> Self

this cleanup up the AST, opposite of two lift_ast invocations

fn apply_arguments_inplace(&mut self, args: &CmdEvalArgs) -> Result<(), usize>

this apply_arguments function applies the 'args' to the AST

Return value

  • Err(idx): the first applied index which wasn't present in 'args'
Loading content...

Provided methods

fn take(&mut self) -> Self

fn simplify_inplace(&mut self)

Loading content...

Implementors

impl MangleAST for ASTNode[src]

impl MangleAST for CmdEvalArgs[src]

impl MangleAST for VAN[src]

Loading content...