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
sourceimpl Clone for InsertElement
impl Clone for InsertElement
sourcefn clone(&self) -> InsertElement
fn clone(&self) -> InsertElement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InsertElement
impl Debug for InsertElement
sourceimpl Display for InsertElement
impl Display for InsertElement
sourceimpl From<InsertElement> for Instruction
impl From<InsertElement> for Instruction
sourcefn from(inst: InsertElement) -> Instruction
fn from(inst: InsertElement) -> Instruction
Converts to this type from the input type.
sourceimpl HasDebugLoc for InsertElement
impl HasDebugLoc for InsertElement
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 HasResult for InsertElement
impl HasResult for InsertElement
fn get_result(&self) -> &Name
sourceimpl PartialEq<InsertElement> for InsertElement
impl PartialEq<InsertElement> for InsertElement
sourcefn 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 ==
. Read more
sourceimpl 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
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