[][src]Struct dynasmrt::UncommittedModifier

pub struct UncommittedModifier<'a> { /* fields omitted */ }

This struct is a wrapper around an Assembler normally created using the Assembler.alter_uncommitted method. It allows the user to edit parts of the assembling buffer that cannot be determined easily or efficiently in advance. Due to limitations of the label resolution algorithms, this assembler does not allow labels to be used.

Methods

impl<'a> UncommittedModifier<'a>[src]

pub fn new(
    buffer: &mut Vec<u8>,
    base_offset: AssemblyOffset
) -> UncommittedModifier
[src]

create a new uncommittedmodifier

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

Sets the current modification offset to the given value

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

Checks that the current modification offset is not larger than the specified offset.

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

Checks that the current modification offset is exactly the specified offset.

Trait Implementations

impl<'a> DynasmApi for UncommittedModifier<'a>[src]

impl<'a> Extend<u8> for UncommittedModifier<'a>[src]

impl<'a, 'b> Extend<&'b u8> for UncommittedModifier<'a>[src]

impl<'a> Debug for UncommittedModifier<'a>[src]

Auto Trait Implementations

impl<'a> Send for UncommittedModifier<'a>

impl<'a> Sync for UncommittedModifier<'a>

impl<'a> Unpin for UncommittedModifier<'a>

impl<'a> !UnwindSafe for UncommittedModifier<'a>

impl<'a> RefUnwindSafe for UncommittedModifier<'a>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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