Struct llvm_ir::instruction::InsertElement
source · pub struct InsertElement {
pub vector: Operand,
pub element: Operand,
pub index: Operand,
pub dest: Name,
pub debugloc: Option<DebugLoc>,
}
Expand description
Insert an element into a vector at a specified index. See LLVM 14 docs on the ‘insertelement’ instruction
Fields§
§vector: Operand
§element: Operand
§index: Operand
§dest: Name
§debugloc: Option<DebugLoc>
Trait Implementations§
source§impl Clone for InsertElement
impl Clone for InsertElement
source§fn clone(&self) -> InsertElement
fn clone(&self) -> InsertElement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InsertElement
impl Debug for InsertElement
source§impl Display for InsertElement
impl Display for InsertElement
source§impl From<InsertElement> for Instruction
impl From<InsertElement> for Instruction
source§fn from(inst: InsertElement) -> Instruction
fn from(inst: InsertElement) -> Instruction
Converts to this type from the input type.
source§impl HasDebugLoc for InsertElement
impl HasDebugLoc for InsertElement
source§impl HasResult for InsertElement
impl HasResult for InsertElement
fn get_result(&self) -> &Name
source§impl PartialEq<InsertElement> for InsertElement
impl PartialEq<InsertElement> for InsertElement
source§fn eq(&self, other: &InsertElement) -> bool
fn eq(&self, other: &InsertElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Instruction> for InsertElement
impl TryFrom<Instruction> for InsertElement
impl StructuralPartialEq for InsertElement
Auto Trait Implementations§
impl RefUnwindSafe for InsertElement
impl Send for InsertElement
impl Sync for InsertElement
impl Unpin for InsertElement
impl UnwindSafe for InsertElement
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