[−][src]Struct walrus::ir::Block
A block of multiple expressions, and also a control frame.
Fields
kind: BlockKind
What kind of block is this?
params: Box<[ValType]>
The types of the expected values on the stack when entering this block.
results: Box<[ValType]>
The types of the resulting values added to the stack after this block is evaluated.
exprs: Vec<ExprId>
The expressions that make up the body of this block.
Methods
impl Block
[src]
pub fn new(
kind: BlockKind,
params: Box<[ValType]>,
results: Box<[ValType]>
) -> Block
[src]
kind: BlockKind,
params: Box<[ValType]>,
results: Box<[ValType]>
) -> Block
Construct a new block.
Trait Implementations
impl Ast for Block
[src]
impl<'expr> Visit<'expr> for Block
[src]
impl VisitMut for Block
[src]
fn visit_mut<V: VisitorMut>(&mut self, visitor: &mut V)
[src]
impl Clone for Block
[src]
fn clone(&self) -> Block
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<Block> for Expr
[src]
impl Debug for Block
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,