#[repr(u16)]pub enum I386RelocationType {
Absolute = 0,
Dir16 = 1,
Rel16 = 2,
Dir32 = 6,
Dir32Nb = 7,
Seg12 = 9,
Section = 10,
SecRel = 11,
Token = 12,
SecRel7 = 13,
Rel32 = 20,
}
Expand description
Relocation type indicators for Intel 386 processors.
Variants§
Absolute = 0
The relocation is ignored.
Dir16 = 1
Not supported.
Rel16 = 2
Not supported.
Dir32 = 6
The target’s 32-bit VA.
Dir32Nb = 7
The target’s 32-bit RVA.
Seg12 = 9
Not supported.
Section = 10
The 16-bit section index of the section that contains the target. This is used to support debugging information.
SecRel = 11
The 32-bit offset of the target from the beginning of its section. This is used to support debugging information and static thread local storage.
Token = 12
The CLR token.
SecRel7 = 13
A 7-bit offset from the base of the section that contains the target.
Rel32 = 20
The 32-bit relative displacement to the target. This supports the x86 relative branch and call instructions.
Trait Implementations§
Source§impl Debug for I386RelocationType
impl Debug for I386RelocationType
Source§impl FromPrimitive for I386RelocationType
impl FromPrimitive for I386RelocationType
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§impl PartialEq for I386RelocationType
impl PartialEq for I386RelocationType
impl StructuralPartialEq for I386RelocationType
Auto Trait Implementations§
impl Freeze for I386RelocationType
impl RefUnwindSafe for I386RelocationType
impl Send for I386RelocationType
impl Sync for I386RelocationType
impl Unpin for I386RelocationType
impl UnwindSafe for I386RelocationType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more