Struct CodeLocationConvertibleLoad

Source
pub struct CodeLocationConvertibleLoad<PtrTag> {
    pub common: CodeLocationCommon<PtrTag>,
}

Fields§

§common: CodeLocationCommon<PtrTag>

Implementations§

Source§

impl<PtrTag> CodeLocationConvertibleLoad<PtrTag>

Source

pub fn new(value: CodePtr<PtrTag>) -> Self

Methods from Deref<Target = CodeLocationCommon<PtrTag>>§

Source

pub fn instruction_at_offset( &self, offset: isize, ) -> CodeLocationInstruction<PtrTag>

Source

pub fn label_at_offset(&self, offset: isize) -> CodeLocationLabel<PtrTag>

Source

pub fn jump_at_offset(&self, offset: isize) -> CodeLocationJump<PtrTag>

Source

pub fn call_at_offset(&self, offset: isize) -> CodeLocationCall<PtrTag>

Source

pub fn near_call_at_offset(&self, offset: isize) -> CodeLocationNearCall<PtrTag>

Source

pub fn data_label_ptr_at_offset( &self, offset: isize, ) -> CodeLocationDataLabelPtr<PtrTag>

Source

pub fn data_label32_at_offset( &self, offset: isize, ) -> CodeLocationDataLabel32<PtrTag>

Source

pub fn convertible_load_at_offset( &self, offset: isize, ) -> CodeLocationConvertibleLoad<PtrTag>

Methods from Deref<Target = CodePtr<PtrTag>>§

Source

pub fn get(&self) -> *mut u8

Source

pub fn set(&mut self, value: *mut u8)

Source

pub fn as_usize(&self) -> usize

Source

pub fn as_ptr(&self) -> *const u8

Source

pub fn as_mut_ptr(&mut self) -> *mut u8

Source

pub fn as_ptr_tag(&self) -> *const PtrTag

Source

pub fn as_mut_ptr_tag(&mut self) -> *mut PtrTag

Source

pub fn is_null(&self) -> bool

Source

pub fn is_not_null(&self) -> bool

Source

pub fn data_location(&self) -> *mut u8

Trait Implementations§

Source§

impl<PtrTag> Deref for CodeLocationConvertibleLoad<PtrTag>

Source§

type Target = CodeLocationCommon<PtrTag>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<PtrTag> DerefMut for CodeLocationConvertibleLoad<PtrTag>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.

Auto Trait Implementations§

§

impl<PtrTag> Freeze for CodeLocationConvertibleLoad<PtrTag>

§

impl<PtrTag> RefUnwindSafe for CodeLocationConvertibleLoad<PtrTag>
where PtrTag: RefUnwindSafe,

§

impl<PtrTag> !Send for CodeLocationConvertibleLoad<PtrTag>

§

impl<PtrTag> !Sync for CodeLocationConvertibleLoad<PtrTag>

§

impl<PtrTag> Unpin for CodeLocationConvertibleLoad<PtrTag>
where PtrTag: Unpin,

§

impl<PtrTag> UnwindSafe for CodeLocationConvertibleLoad<PtrTag>
where PtrTag: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.