Trait dynasmrt::DynasmApi [] [src]

pub trait DynasmApi<'a>: Extend<u8> + Extend<&'a u8> {
    fn offset(&self) -> AssemblyOffset;
fn push(&mut self, byte: u8); fn push_i8(&mut self, value: i8) { ... }
fn push_i16(&mut self, value: i16) { ... }
fn push_i32(&mut self, value: i32) { ... }
fn push_i64(&mut self, value: i64) { ... }
fn runtime_error(&self, msg: &'static str) -> ! { ... } }

This trait represents the interface that must be implemented to allow the dynasm preprocessor to assemble into a datastructure.

Required Methods

Report the current offset into the assembling target

Push a byte into the assembling target

Provided Methods

Push a signed byte into the assembling target

Push a signed word into the assembling target

Push a signed doubleword into the assembling target

Push a signed quadword into the assembling target

This function is called in when a runtime error has to be generated. It panics.

Implementors