pub struct MachConstantRef {
pub offset: CodeOffset,
pub kind: Reloc,
pub addend: Addend,
pub constant: usize,
}Expand description
A reference from the code to a constant.
The embedder resolves it as a relocation whose target is the constant. The result is added to
the value already at offset.
Fields§
§offset: CodeOffsetThe offset of the reference in the code.
kind: RelocThe kind of relocation.
addend: AddendThe addend of the relocation.
constant: usizeThe constant, as an index into MachConstantsFinalized::offsets.
Trait Implementations§
Source§impl Clone for MachConstantRef
impl Clone for MachConstantRef
impl Copy for MachConstantRef
Source§impl Debug for MachConstantRef
impl Debug for MachConstantRef
Source§impl<'de> Deserialize<'de> for MachConstantRef
Available on crate feature enable-serde only.
impl<'de> Deserialize<'de> for MachConstantRef
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 Eq for MachConstantRef
Source§impl PartialEq for MachConstantRef
impl PartialEq for MachConstantRef
Source§impl Serialize for MachConstantRef
Available on crate feature enable-serde only.
impl Serialize for MachConstantRef
Available on crate feature
enable-serde only.impl StructuralPartialEq for MachConstantRef
Auto Trait Implementations§
impl Forget for MachConstantRef
impl Freeze for MachConstantRef
impl Move for MachConstantRef
impl RefUnwindSafe for MachConstantRef
impl Send for MachConstantRef
impl Sync for MachConstantRef
impl Unpin for MachConstantRef
impl UnsafeUnpin for MachConstantRef
impl UnwindSafe for MachConstantRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
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.