Enum dynasmrt::relocations::RelocationSize[][src]

pub enum RelocationSize {
    Byte,
    Word,
    DWord,
    QWord,
}
Expand description

A descriptor for the size of a relocation. This also doubles as a relocation itself for relocations in data directives. Can be converted to relocations of any kind of architecture using Relocation::from_size.

Variants

Byte

A byte-sized relocation

Word

A two-byte relocation

DWord

A four-byte sized relocation

QWord

An 8-byte sized relocation

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

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The encoded representation for this relocation that is emitted by the dynasm! macro.

construct this relocation from an encoded representation.

construct this relocation from a simple size. This is used to implement relocations in directives and literal pools.

The size of the slice of bytes affected by this relocation

Write a value into a buffer of size self.size() in the format of this relocation. Any bits not part of the relocation should be preserved. Read more

Read a value from a buffer of size self.size() in the format of this relocation.

Specifies what kind of relocation this relocation instance is.

Specifies the default page size on this platform.

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.