Enum cranelift_codegen::machinst::lower::RelocDistance[][src]

pub enum RelocDistance {
    Near,
    Far,
}

Notion of “relocation distance”. This gives an estimate of how far away a symbol will be from a reference.

Variants

Near

Target of relocation is “nearby”. The threshold for this is fuzzy but should be interpreted as approximately “within the compiled output of one module”; e.g., within AArch64’s +/- 128MB offset. If unsure, use Far instead.

Far

Target of relocation could be anywhere in the address space.

Trait Implementations

impl Clone for RelocDistance[src]

impl Copy for RelocDistance[src]

impl Debug for RelocDistance[src]

impl Eq for RelocDistance[src]

impl PartialEq<RelocDistance> for RelocDistance[src]

impl StructuralEq for RelocDistance[src]

impl StructuralPartialEq for RelocDistance[src]

Auto Trait Implementations

impl RefUnwindSafe for RelocDistance

impl Send for RelocDistance

impl Sync for RelocDistance

impl Unpin for RelocDistance

impl UnwindSafe for RelocDistance

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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.