Struct llvm_ir::instruction::GetElementPtr[][src]

pub struct GetElementPtr {
    pub address: Operand,
    pub indices: Vec<Operand>,
    pub dest: Name,
    pub in_bounds: bool,
    pub debugloc: Option<DebugLoc>,
}

Get the address of a subelement of an aggregate data structure. Only performs address calculation, does not actually access memory. See LLVM 12 docs on the 'getelementptr' instruction

Fields

address: Operandindices: Vec<Operand>dest: Namein_bounds: booldebugloc: Option<DebugLoc>

Trait Implementations

impl Clone for GetElementPtr[src]

impl Debug for GetElementPtr[src]

impl Display for GetElementPtr[src]

impl From<GetElementPtr> for Instruction[src]

impl HasDebugLoc for GetElementPtr[src]

impl HasResult for GetElementPtr[src]

impl PartialEq<GetElementPtr> for GetElementPtr[src]

impl StructuralPartialEq for GetElementPtr[src]

impl TryFrom<Instruction> for GetElementPtr[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl Typed for GetElementPtr[src]

Auto Trait Implementations

impl RefUnwindSafe for GetElementPtr[src]

impl Send for GetElementPtr[src]

impl Sync for GetElementPtr[src]

impl Unpin for GetElementPtr[src]

impl UnwindSafe for GetElementPtr[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.