Struct dynasmrt::SimpleAssembler [−][src]
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.
Trait Implementations
Report the current offset into the assembling target
Push filler until the assembling target end is aligned to the given alignment.
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
extend_one
)Extends a collection with exactly one element.
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
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Auto Trait Implementations
impl RefUnwindSafe for SimpleAssembler
impl Send for SimpleAssembler
impl Sync for SimpleAssembler
impl Unpin for SimpleAssembler
impl UnwindSafe for SimpleAssembler
Blanket Implementations
Mutably borrows from an owned value. Read more