Struct dynasmrt::Modifier

source ·
pub struct Modifier<'a, R: Relocation> { /* private fields */ }
Expand description

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§

Move the modifier cursor to the selected location.

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

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

Trait Implementations§

Formats the value using the given formatter. Read more
Report the current offset into the assembling target
Push a byte into the assembling target
Push filler until the assembling target end is aligned to the given alignment.
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
Push an usigned word into the assembling target
Push an usigned doubleword into the assembling target
Push an usigned quadword into the assembling target
This function is called in when a runtime error has to be generated. It panics.
The relocation info type this assembler uses.
Record the definition of a local label
Record the definition of a global label
Record the definition of a dynamic label
Equivalent of global_reloc, but takes a non-encoded relocation
Equivalent of dynamic_reloc, but takes a non-encoded relocation
Equivalent of forward_reloc, but takes a non-encoded relocation
Equivalent of backward_reloc, but takes a non-encoded relocation
Equivalent of bare_reloc, but takes a non-encoded relocation
Record a relocation spot for a forward reference to a local label
Record a relocation spot for a backward reference to a local label
Record a relocation spot for a reference to a global label
Record a relocation spot for a reference to a dynamic label
Record a relocation spot to an arbitrary target.
Extends a collection with the contents of an iterator. Read more
🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
Extends a collection with the contents of an iterator. Read more
🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.