[][src]Struct solana_rbpf::insn_builder::Move

pub struct Move<'i> { /* fields omitted */ }

struct to represent MOV ALU instructions

Methods

impl<'i> Move<'i>
[src]

pub fn push(self) -> &'i mut BpfCode
[src]

push MOV instruction into BpfCode instruction stack

Trait Implementations

impl<'i> Instruction for Move<'i>
[src]

fn get_dst(&self) -> u8
[src]

returns destination register

fn get_src(&self) -> u8
[src]

returns source register

fn get_off(&self) -> i16
[src]

returns offset bytes

fn get_imm(&self) -> i32
[src]

returns immediate value

fn set_dst(self, dst: u8) -> Self
[src]

sets destination register

fn set_src(self, src: u8) -> Self
[src]

sets source register

fn set_off(self, offset: i16) -> Self
[src]

sets offset bytes

fn set_imm(self, imm: i32) -> Self
[src]

sets immediate value

Auto Trait Implementations

impl<'i> Send for Move<'i>

impl<'i> Sync for Move<'i>

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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