Struct llvm_ir::instruction::AddrSpaceCast [−][src]
pub struct AddrSpaceCast { pub operand: Operand, pub to_type: TypeRef, pub dest: Name, pub debugloc: Option<DebugLoc>, }
Expand description
Convert a pointer to a different address space. See LLVM 12 docs on the ‘addrspacecast’ instruction
Fields
operand: Operand
to_type: TypeRef
dest: Name
debugloc: Option<DebugLoc>
Trait Implementations
Performs the conversion.
Returns the DebugLoc
associated with the given Instruction
,
Terminator
, GlobalVariable
, or Function
; or None
if it doesn’t
have a DebugLoc
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AddrSpaceCast
impl Send for AddrSpaceCast
impl Sync for AddrSpaceCast
impl Unpin for AddrSpaceCast
impl UnwindSafe for AddrSpaceCast
Blanket Implementations
Mutably borrows from an owned value. Read more