Struct llvm_ir::instruction::Trunc [−][src]
pub struct Trunc {
pub operand: Operand,
pub to_type: TypeRef,
pub dest: Name,
pub debugloc: Option<DebugLoc>,
}
Expand description
Truncate. See LLVM 12 docs on the ‘trunc’ 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
Auto Trait Implementations
impl RefUnwindSafe for Trunc
impl UnwindSafe for Trunc
Blanket Implementations
Mutably borrows from an owned value. Read more