Trait come::backend::riscv::simple_instruction::param::AsParam

source ·
pub trait AsParam {
    // Required method
    fn as_param(&self) -> Param;
}
Expand description

There are some types we hope can be converted to Param. So we can make instruction! macro easily.

Required Methods§

source

fn as_param(&self) -> Param

Implementations on Foreign Types§

source§

impl AsParam for &str

source§

fn as_param(&self) -> Param

source§

impl AsParam for i32

source§

fn as_param(&self) -> Param

Implementors§