Struct dynasmrt::SimpleAssembler[][src]

pub struct SimpleAssembler {
    pub ops: Vec<u8>,
}
Expand description

An assembler that is purely a Vec<u8>. It doesn’t support labels or architecture-specific directives, but can be used to easily inspect generated code. It is intended to be used in testcases.

Fields

ops: Vec<u8>

The assembling buffer.

Implementations

Creates a new SimpleAssembler, containing an empty Vec.

Use an UncommittedModifier to alter uncommitted code.

Destroys this assembler, returning the Vec<u8> contained within

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.