[][src]Struct cranelift_codegen_meta::cdsl::ast::Apply

pub(crate) struct Apply {
    pub inst: Rc<InstructionContent>,
    pub args: Vec<Expr>,
    pub value_types: Vec<ValueType>,
}

Apply an instruction to arguments.

An Apply AST expression is created by using function call syntax on instructions. This applies to both bound and unbound polymorphic instructions.

Fields

inst: Rc<InstructionContent>args: Vec<Expr>value_types: Vec<ValueType>

Methods

impl Apply[src]

pub fn new(target: InstSpec, args: Vec<Expr>) -> Self[src]

fn to_comment_string(&self, var_pool: &VarPool) -> String[src]

pub fn inst_predicate(&self, var_pool: &VarPool) -> InstructionPredicate[src]

pub fn inst_predicate_with_ctrl_typevar(
    &self,
    var_pool: &VarPool
) -> InstructionPredicate
[src]

Same as inst_predicate(), but also check the controlling type variable.

pub fn rust_builder(
    &self,
    defined_vars: &[VarIndex],
    var_pool: &VarPool
) -> String
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Apply

impl !Send for Apply

impl !Sync for Apply

impl Unpin for Apply

impl !UnwindSafe for Apply

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.