pub struct MachReloc {
pub offset: CodeOffset,
pub kind: Reloc,
pub target: RelocTarget,
pub addend: i64,
}Expand description
A relocation resulting from a compilation.
Fields§
§offset: CodeOffsetThe offset at which the relocation applies, relative to the containing section.
kind: RelocThe kind of relocation.
target: RelocTargetThe external symbol / name to which this relocation refers.
addend: i64The addend to add to the symbol value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MachReloc
Available on crate feature enable-serde only.
impl<'de> Deserialize<'de> for MachReloc
Available on crate feature
enable-serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for MachReloc
Auto Trait Implementations§
impl Freeze for MachReloc
impl RefUnwindSafe for MachReloc
impl Send for MachReloc
impl Sync for MachReloc
impl Unpin for MachReloc
impl UnsafeUnpin for MachReloc
impl UnwindSafe for MachReloc
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