[][src]Trait gluon_vm::core::optimize::ExprProducer

pub trait ExprProducer<'a, 'b> {
    fn new(allocator: &'a Allocator<'a>) -> Self
    where
        Self: Sized
;
fn produce(&mut self, expr: CExpr<'b>) -> CExpr<'a>;
fn produce_slice(&mut self, expr: &'b [Expr<'b>]) -> &'a [Expr<'a>];
fn produce_alt(&mut self, alt: &'b Alternative<'b>) -> Alternative<'a>; }

Required methods

fn new(allocator: &'a Allocator<'a>) -> Self where
    Self: Sized

fn produce(&mut self, expr: CExpr<'b>) -> CExpr<'a>

fn produce_slice(&mut self, expr: &'b [Expr<'b>]) -> &'a [Expr<'a>]

fn produce_alt(&mut self, alt: &'b Alternative<'b>) -> Alternative<'a>

Loading content...

Implementors

impl<'a> ExprProducer<'a, 'a> for SameLifetime<'a>[src]

impl<'a, 'b> ExprProducer<'a, 'b> for DifferentLifetime<'a, 'b>[src]

Loading content...