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

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

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

impl Clone for RelocationSize[src]

impl Copy for RelocationSize[src]

impl Debug for RelocationSize[src]

impl Eq for RelocationSize[src]

impl Hash for RelocationSize[src]

impl PartialEq<RelocationSize> for RelocationSize[src]

impl Relocation for RelocationSize[src]

type Encoding = u8

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

impl StructuralEq for RelocationSize[src]

impl StructuralPartialEq for RelocationSize[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.