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