Enum object::read::RelocationFlags
source · #[non_exhaustive]pub enum RelocationFlags {
Generic {
kind: RelocationKind,
encoding: RelocationEncoding,
size: u8,
},
Elf {
r_type: u32,
},
MachO {
r_type: u8,
r_pcrel: bool,
r_length: u8,
},
Coff {
typ: u16,
},
Xcoff {
r_rtype: u8,
r_rsize: u8,
},
}
Expand description
Relocation fields that are specific to each file format and architecture.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Generic
Format independent representation.
Fields
§
kind: RelocationKind
The operation used to calculate the result of the relocation.
§
encoding: RelocationEncoding
Information about how the result of the relocation operation is encoded in the place.
Elf
ELF relocation fields.
MachO
Mach-O relocation fields.
Fields
Coff
COFF relocation fields.
Xcoff
XCOFF relocation fields.
Trait Implementations§
source§impl Clone for RelocationFlags
impl Clone for RelocationFlags
source§fn clone(&self) -> RelocationFlags
fn clone(&self) -> RelocationFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RelocationFlags
impl Debug for RelocationFlags
source§impl Hash for RelocationFlags
impl Hash for RelocationFlags
source§impl PartialEq for RelocationFlags
impl PartialEq for RelocationFlags
source§fn eq(&self, other: &RelocationFlags) -> bool
fn eq(&self, other: &RelocationFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RelocationFlags
impl Eq for RelocationFlags
impl StructuralPartialEq for RelocationFlags
Auto Trait Implementations§
impl Freeze for RelocationFlags
impl RefUnwindSafe for RelocationFlags
impl Send for RelocationFlags
impl Sync for RelocationFlags
impl Unpin for RelocationFlags
impl UnwindSafe for RelocationFlags
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