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§
source§impl From<PtrToInt> for Instruction
impl From<PtrToInt> for Instruction
source§fn from(inst: PtrToInt) -> Instruction
fn from(inst: PtrToInt) -> Instruction
Converts to this type from the input type.
source§impl HasDebugLoc for PtrToInt
impl HasDebugLoc for PtrToInt
source§impl PartialEq<PtrToInt> for PtrToInt
impl PartialEq<PtrToInt> for PtrToInt
source§impl 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§
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