Struct llvm_ir::instruction::PtrToInt
source · [−]pub struct PtrToInt {
pub operand: Operand,
pub to_type: TypeRef,
pub dest: Name,
pub debugloc: Option<DebugLoc>,
}
Expand description
Convert pointer to integer. See LLVM 14 docs on the ‘ptrtoint’ instruction
Fields
operand: Operand
to_type: TypeRef
dest: Name
debugloc: Option<DebugLoc>
Trait Implementations
sourceimpl From<PtrToInt> for Instruction
impl From<PtrToInt> for Instruction
sourcefn from(inst: PtrToInt) -> Instruction
fn from(inst: PtrToInt) -> Instruction
Converts to this type from the input type.
sourceimpl HasDebugLoc for PtrToInt
impl HasDebugLoc for PtrToInt
sourcefn get_debug_loc(&self) -> &Option<DebugLoc>
fn get_debug_loc(&self) -> &Option<DebugLoc>
Returns the DebugLoc
associated with the given Instruction
,
Terminator
, GlobalVariable
, or Function
; or None
if it doesn’t
have a DebugLoc
. Read more
sourceimpl PartialEq<PtrToInt> for PtrToInt
impl PartialEq<PtrToInt> for PtrToInt
sourceimpl TryFrom<Instruction> for PtrToInt
impl TryFrom<Instruction> for PtrToInt
impl StructuralPartialEq for PtrToInt
Auto Trait Implementations
impl RefUnwindSafe for PtrToInt
impl Send for PtrToInt
impl Sync for PtrToInt
impl Unpin for PtrToInt
impl UnwindSafe for PtrToInt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more