Skip to main content

CJEmitter

Trait CJEmitter 

Source
pub trait CJEmitter<T0> {
    // Required method
    fn c_j(&mut self, imm: T0);
}
Expand description

Jump

C.J performs an unconditional control transfer. The offset is sign-extended and added to the pc to form the jump target address. C.J can therefore target a ±2 KiB range. It expands to jal x0, offset.

§Forms

Assembly: c.j imm Rust: c_j(imm)

§Arguments

  • imm — Immediate encoding value.

Required Methods§

Source

fn c_j(&mut self, imm: T0)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§