Skip to main content

IntoInstruction

Trait IntoInstruction 

Source
pub trait IntoInstruction<T> {
    // Required method
    fn into_instruction(self) -> Instruction;
}
Expand description

Bridges the C++ T{args...} variadic construction: maps each instruction type T and its constructor arg-pack to a built Instruction variant. (C++ instructions.allocate(T{std::forward<Args>(args)...}).)

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoInstruction<Assign> for (DefId, *mut AstStatAssign)

Source§

impl IntoInstruction<Declare> for (DefId, *mut AstStatLocal)

Source§

impl IntoInstruction<Refine> for (DefId, *const Refinement)

Implementors§