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 duplicate 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 Hash for InsertElement
impl Hash for InsertElement
Source§impl PartialEq for InsertElement
impl PartialEq for InsertElement
Source§impl TryFrom<Instruction> for InsertElement
impl TryFrom<Instruction> for InsertElement
impl StructuralPartialEq for InsertElement
Auto Trait Implementations§
impl Freeze for InsertElement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more