[][src]Struct inkwell::values::ArrayValue

pub struct ArrayValue<'ctx> { /* fields omitted */ }

An ArrayValue is a block of contiguous constants or variables.

Implementations

impl<'ctx> ArrayValue<'ctx>[src]

pub fn get_name(&self) -> &CStr[src]

Gets the name of an ArrayValue. If the value is a constant, this will return an empty string.

pub fn get_type(self) -> ArrayType<'ctx>[src]

Gets the type of this ArrayValue.

pub fn is_null(self) -> bool[src]

Determines whether or not this value is null.

pub fn is_undef(self) -> bool[src]

Determines whether or not this value is undefined.

pub fn print_to_stderr(self)[src]

Prints this ArrayValue to standard error.

pub fn as_instruction(self) -> Option<InstructionValue<'ctx>>[src]

Attempt to convert this ArrayValue to an InstructionValue, if possible.

pub fn replace_all_uses_with(self, other: ArrayValue<'ctx>)[src]

Replaces all uses of this value with another value of the same type. If used incorrectly this may result in invalid IR.

pub fn is_const(self) -> bool[src]

Determines whether or not an ArrayValue is a constant.

Example

use inkwell::context::Context;

let context = Context::create();
let i64_type = context.i64_type();
let i64_val = i64_type.const_int(23, false);
let array_val = i64_type.const_array(&[i64_val]);

assert!(array_val.is_const());

Trait Implementations

impl<'ctx> AggregateValue<'ctx> for ArrayValue<'ctx>[src]

impl<'ctx> AnyValue<'ctx> for ArrayValue<'ctx>[src]

impl<'ctx> BasicValue<'ctx> for ArrayValue<'ctx>[src]

impl<'ctx> Clone for ArrayValue<'ctx>[src]

impl<'ctx> Copy for ArrayValue<'ctx>[src]

impl<'_> Debug for ArrayValue<'_>[src]

impl<'ctx> Eq for ArrayValue<'ctx>[src]

impl<'ctx> From<ArrayValue<'ctx>> for AggregateValueEnum<'ctx>[src]

impl<'ctx> From<ArrayValue<'ctx>> for AnyValueEnum<'ctx>[src]

impl<'ctx> From<ArrayValue<'ctx>> for BasicValueEnum<'ctx>[src]

impl<'ctx> From<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>[src]

impl<'ctx> Hash for ArrayValue<'ctx>[src]

impl<'ctx> PartialEq<AggregateValueEnum<'ctx>> for ArrayValue<'ctx>[src]

impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for ArrayValue<'ctx>[src]

impl<'ctx> PartialEq<ArrayValue<'ctx>> for ArrayValue<'ctx>[src]

impl<'ctx> PartialEq<ArrayValue<'ctx>> for AggregateValueEnum<'ctx>[src]

impl<'ctx> PartialEq<ArrayValue<'ctx>> for AnyValueEnum<'ctx>[src]

impl<'ctx> PartialEq<ArrayValue<'ctx>> for BasicValueEnum<'ctx>[src]

impl<'ctx> PartialEq<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>[src]

impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>[src]

impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for ArrayValue<'ctx>[src]

impl<'ctx> StructuralEq for ArrayValue<'ctx>[src]

impl<'ctx> StructuralPartialEq for ArrayValue<'ctx>[src]

impl<'ctx> TryFrom<AggregateValueEnum<'ctx>> for ArrayValue<'ctx>[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for ArrayValue<'ctx>[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for ArrayValue<'ctx>[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'ctx> RefUnwindSafe for ArrayValue<'ctx>

impl<'ctx> !Send for ArrayValue<'ctx>

impl<'ctx> !Sync for ArrayValue<'ctx>

impl<'ctx> Unpin for ArrayValue<'ctx>

impl<'ctx> UnwindSafe for ArrayValue<'ctx>

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, 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.