Struct wasmtime_environ::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: Reloc
The relocation code.
reloc_target: RelocationTarget
Relocation target.
offset: CodeOffset
The offset where to apply the relocation.
addend: Addend
The addend to add to the relocation value.
Trait Implementations
sourceimpl Clone for Relocation
impl Clone for Relocation
sourcefn clone(&self) -> Relocation
fn clone(&self) -> Relocation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Relocation
impl Debug for Relocation
sourceimpl<'de> Deserialize<'de> for Relocation
impl<'de> Deserialize<'de> for Relocation
sourcefn 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
sourceimpl PartialEq<Relocation> for Relocation
impl PartialEq<Relocation> for Relocation
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &Relocation) -> bool
fn ne(&self, other: &Relocation) -> bool
This method tests for !=
.
sourceimpl Serialize for Relocation
impl Serialize for Relocation
impl Eq for Relocation
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more