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