pub trait EncodeExpression {
    // Required methods
    fn alloc_expr_locals(
        &self,
        expression: ExpressionId,
        allocator: &mut ExpressionAllocator<'_>
    ) -> Result<(), GenerationError>;
    fn encode(
        &self,
        expression: ExpressionId,
        code_gen: &mut CodeGenerator<'_>
    ) -> Result<(), GenerationError>;
}

Required Methods§

source

fn alloc_expr_locals( &self, expression: ExpressionId, allocator: &mut ExpressionAllocator<'_> ) -> Result<(), GenerationError>

source

fn encode( &self, expression: ExpressionId, code_gen: &mut CodeGenerator<'_> ) -> Result<(), GenerationError>

Implementations on Foreign Types§

source§

impl EncodeExpression for Expression

source§

fn alloc_expr_locals( &self, expression: ExpressionId, allocator: &mut ExpressionAllocator<'_> ) -> Result<(), GenerationError>

source§

fn encode( &self, expression: ExpressionId, code_gen: &mut CodeGenerator<'_> ) -> Result<(), GenerationError>

source§

impl EncodeExpression for Literal

source§

fn alloc_expr_locals( &self, expression: ExpressionId, allocator: &mut ExpressionAllocator<'_> ) -> Result<(), GenerationError>

source§

fn encode( &self, expression: ExpressionId, code_gen: &mut CodeGenerator<'_> ) -> Result<(), GenerationError>

source§

impl EncodeExpression for BinaryExpression

source§

fn alloc_expr_locals( &self, expression: ExpressionId, allocator: &mut ExpressionAllocator<'_> ) -> Result<(), GenerationError>

source§

fn encode( &self, expression: ExpressionId, code_gen: &mut CodeGenerator<'_> ) -> Result<(), GenerationError>

source§

impl EncodeExpression for Call

source§

fn alloc_expr_locals( &self, expression: ExpressionId, allocator: &mut ExpressionAllocator<'_> ) -> Result<(), GenerationError>

source§

fn encode( &self, expression: ExpressionId, code_gen: &mut CodeGenerator<'_> ) -> Result<(), GenerationError>

source§

impl EncodeExpression for Identifier

source§

fn alloc_expr_locals( &self, expression: ExpressionId, allocator: &mut ExpressionAllocator<'_> ) -> Result<(), GenerationError>

source§

fn encode( &self, expression: ExpressionId, code_gen: &mut CodeGenerator<'_> ) -> Result<(), GenerationError>

source§

impl EncodeExpression for UnaryExpression

source§

fn alloc_expr_locals( &self, expression: ExpressionId, allocator: &mut ExpressionAllocator<'_> ) -> Result<(), GenerationError>

source§

fn encode( &self, expression: ExpressionId, code_gen: &mut CodeGenerator<'_> ) -> Result<(), GenerationError>

Implementors§