[][src]Enum dynasmrt::relocations::RelocationKind

pub enum RelocationKind {
    Relative,
    AbsToRel,
    RelToAbs,
}

Specifies what kind of relocation a relocation is.

Variants

Relative

A simple, PC-relative relocation. These can be encoded once and do not need to be adjusted when the executable buffer is moved.

AbsToRel

An absolute relocation to a relative address, i.e. trying to put the address of a dynasm x86 function in a register This means adjustment is necessary when the executable buffer is moved

RelToAbs

A relative relocation to an absolute address, i.e. trying to call a rust function with a dynasm x86 call. This means adjustment is necessary when the executable buffer is moved

Implementations

impl RelocationKind[src]

pub fn from_encoding(encoding: u8) -> Self[src]

Converts back from numeric value to RelocationKind

Trait Implementations

impl Clone for RelocationKind[src]

impl Copy for RelocationKind[src]

impl Debug for RelocationKind[src]

impl Eq for RelocationKind[src]

impl Hash for RelocationKind[src]

impl PartialEq<RelocationKind> for RelocationKind[src]

impl StructuralEq for RelocationKind[src]

impl StructuralPartialEq for RelocationKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.