Struct wasmtime_cranelift_shared::Relocation
source · pub struct Relocation {
pub reloc: Reloc,
pub reloc_target: RelocationTarget,
pub offset: CodeOffset,
pub addend: Addend,
}Expand description
A record of a relocation to perform.
Fields§
§reloc: RelocThe relocation code.
reloc_target: RelocationTargetRelocation target.
offset: CodeOffsetThe offset where to apply the relocation.
addend: AddendThe addend to add to the relocation value.
Trait Implementations§
source§impl Clone for Relocation
impl Clone for Relocation
source§fn clone(&self) -> Relocation
fn clone(&self) -> Relocation
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 Relocation
impl Debug for Relocation
source§impl PartialEq for Relocation
impl PartialEq for Relocation
source§fn eq(&self, other: &Relocation) -> bool
fn eq(&self, other: &Relocation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for Relocation
impl StructuralPartialEq for Relocation
Auto Trait Implementations§
impl RefUnwindSafe for Relocation
impl Send for Relocation
impl Sync for Relocation
impl Unpin for Relocation
impl UnwindSafe for Relocation
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more