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 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 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 Hash for ExtractElement
impl Hash for ExtractElement
Source§impl PartialEq for ExtractElement
impl PartialEq for ExtractElement
Source§impl TryFrom<Instruction> for ExtractElement
impl TryFrom<Instruction> for ExtractElement
impl StructuralPartialEq for ExtractElement
Auto Trait Implementations§
impl Freeze for ExtractElement
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
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