pub struct PatchSite {
pub offset: CodeOffset,
pub kind: LabelUse,
pub current_target: CodeOffset,
pub addend: i64,
}Expand description
Catalog entry for a displacement field.
Fields§
§offset: CodeOffset§kind: LabelUse§current_target: CodeOffset§addend: i64Implementations§
Source§impl PatchSite
impl PatchSite
Sourcepub const fn to_patchable(self) -> PatchableSite
pub const fn to_patchable(self) -> PatchableSite
Build a patch handle from a (possibly rebased) catalog entry.
Trait Implementations§
impl Copy for PatchSite
impl Eq for PatchSite
impl StructuralPartialEq for PatchSite
Auto Trait Implementations§
impl Freeze for PatchSite
impl RefUnwindSafe for PatchSite
impl Send for PatchSite
impl Sync for PatchSite
impl Unpin for PatchSite
impl UnsafeUnpin for PatchSite
impl UnwindSafe for PatchSite
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