pub struct Reloc {
pub offset: u32,
pub kind: RelocKind,
pub target: HoleId,
pub addend: i64,
}Expand description
One patchable site inside a stencil’s code.
Fields§
§offset: u32Byte offset of the relocation site within code.
kind: RelocKindThe normalized relocation kind (decides the patcher).
target: HoleIdWhich hole this site resolves.
addend: i64Constant folded into the patched value (S + A - P convention).
Trait Implementations§
impl Copy for Reloc
impl Eq for Reloc
impl StructuralPartialEq for Reloc
Auto Trait Implementations§
impl Freeze for Reloc
impl RefUnwindSafe for Reloc
impl Send for Reloc
impl Sync for Reloc
impl Unpin for Reloc
impl UnsafeUnpin for Reloc
impl UnwindSafe for Reloc
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