[][src]Struct dynasmrt::Modifier

pub struct Modifier<'a, R: Relocation> { /* fields omitted */ }

Allows modification of already committed assembly code. Contains an internal cursor into the emitted assembly, initialized to the start, that can be moved around either with the goto function, or just by assembling new code into this Modifier.

Implementations

impl<'a, R: Relocation> Modifier<'a, R>[src]

pub fn goto(&mut self, offset: AssemblyOffset)[src]

Move the modifier cursor to the selected location.

pub fn check(&self, offset: AssemblyOffset) -> Result<(), DynasmError>[src]

Check that the modifier cursor has not moved past the specified location.

pub fn check_exact(&self, offset: AssemblyOffset) -> Result<(), DynasmError>[src]

Check that the modifier cursor is exactly at the specified location.

Trait Implementations

impl<'a, R: Debug + Relocation> Debug for Modifier<'a, R>[src]

impl<'a, R: Relocation> DynasmApi for Modifier<'a, R>[src]

impl<'a, R: Relocation> DynasmLabelApi for Modifier<'a, R>[src]

type Relocation = R

The relocation info type this assembler uses.

impl<'a, 'b, R: Relocation> Extend<&'b u8> for Modifier<'a, R>[src]

impl<'a, R: Relocation> Extend<u8> for Modifier<'a, R>[src]

Auto Trait Implementations

impl<'a, R> RefUnwindSafe for Modifier<'a, R> where
    R: RefUnwindSafe
[src]

impl<'a, R> Send for Modifier<'a, R> where
    R: Send
[src]

impl<'a, R> Sync for Modifier<'a, R> where
    R: Sync
[src]

impl<'a, R> Unpin for Modifier<'a, R>[src]

impl<'a, R> !UnwindSafe for Modifier<'a, R>[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.