pub struct Expr {
pub instructions: Vec<Instruction>,
}Expand description
An series of Instructions.
Exprs are used in function bodies, element and data segment offsets, and
global variable values.
Fields§
§instructions: Vec<Instruction>Trait Implementations§
Source§impl From<Instruction> for Expr
impl From<Instruction> for Expr
Source§fn from(instr: Instruction) -> Self
fn from(instr: Instruction) -> Self
Converts to this type from the input type.
Source§impl From<Vec<Instruction>> for Expr
impl From<Vec<Instruction>> for Expr
Source§fn from(instructions: Vec<Instruction>) -> Self
fn from(instructions: Vec<Instruction>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<[Instruction; N]> for Expr
impl<const N: usize> From<[Instruction; N]> for Expr
Source§fn from(value: [Instruction; N]) -> Self
fn from(value: [Instruction; N]) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more