Struct llvm_ir::instruction::BitCast
source · [−]pub struct BitCast {
pub operand: Operand,
pub to_type: TypeRef,
pub dest: Name,
pub debugloc: Option<DebugLoc>,
}
Expand description
Convert between types without changing any bits. See LLVM 14 docs on the ‘bitcast’ instruction
Fields
operand: Operand
to_type: TypeRef
dest: Name
debugloc: Option<DebugLoc>
Trait Implementations
sourceimpl From<BitCast> for Instruction
impl From<BitCast> for Instruction
sourcefn from(inst: BitCast) -> Instruction
fn from(inst: BitCast) -> Instruction
Converts to this type from the input type.
sourceimpl HasDebugLoc for BitCast
impl HasDebugLoc for BitCast
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<BitCast> for BitCast
impl PartialEq<BitCast> for BitCast
sourceimpl TryFrom<Instruction> for BitCast
impl TryFrom<Instruction> for BitCast
impl StructuralPartialEq for BitCast
Auto Trait Implementations
impl RefUnwindSafe for BitCast
impl Send for BitCast
impl Sync for BitCast
impl Unpin for BitCast
impl UnwindSafe for BitCast
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