pub struct BlockFrame {
    pub started_with: StartedWith,
    pub block_type: BlockType,
    pub value_stack_len: usize,
    pub polymorphic_stack: bool,
}
Expand description

Control stack frame.

Fields

started_with: StartedWith

The opcode that started this block frame.

block_type: BlockType

A signature, which is a block signature type indicating the number and types of result values of the region.

value_stack_len: usize

A limit integer value, which is an index into the value stack indicating where to reset it to on a branch to that label.

polymorphic_stack: bool

Boolean which signals whether value stack became polymorphic. Value stack starts in a non-polymorphic state and becomes polymorphic only after an instruction that never passes control further is executed, i.e. unreachable, br (but not br_if!), etc.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.