Struct rustdb::expr::Block[][src]

pub struct Block<'a> {
    pub param_count: usize,
    pub return_type: DataType,
    pub local_typ: Vec<DataType>,
    pub ilist: Vec<Instruction>,
    pub break_id: usize,
    pub db: DB,
    pub from: Option<CTableExpression>,
    pub parse_only: bool,
    // some fields omitted
}
Expand description

Compilation block ( body of function or batch section ).

Fields

param_count: usize
return_type: DataType
local_typ: Vec<DataType>
ilist: Vec<Instruction>
break_id: usize
db: DB

Database.

from: Option<CTableExpression>

Current table in scope by FROM clause( or UPDATE statment ).

parse_only: bool

Implementations

Construct a new block.

Check labels are all defined and patch jump instructions.

Add an instruction to the instruction list.

Add a Data Operation (DO) to the instruction list.

Check the parameter kinds match the function.

Define a local variable ( parameter or declared ).

Get the number of a local variable from a name.

Get the name of a local variable from a number.

Get a local jump id.

Set instruction location of jump id.

Get a local jump id to current location.

Get a number for a local goto label.

Set the local for a local goto lable.

Get the DataKind of an expression.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.