Struct dynasmrt::components::ManagedRelocs[][src]

pub struct ManagedRelocs<R: Relocation> { /* fields omitted */ }
Expand description

A registry of relocations that have been encoded previously, but need to be adjusted when the address of the buffer they reside in changes.

Implementations

Create a new, empty managed relocation registry.

Add a relocation to this registry.

Take all items from another registry and add them to this registry

Remove all managed relocations whose byte fields start in the range start .. end. This is useful when implementing an Assembler::alter API, as any managed relocations that were overwritten should be removed from the registry, otherwise the replacement code would be corrupted when managed relocations are updated.

Iterate through all defined managed relocations.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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 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.