Struct inkwell::values::ArrayValue [−][src]
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]
fn as_aggregate_value_enum(&self) -> AggregateValueEnum<'ctx>
[src]
fn const_extract_value(&self, indexes: &mut [u32]) -> BasicValueEnum<'ctx>
[src]
fn const_insert_value<BV: BasicValue<'ctx>>(
&self,
value: BV,
indexes: &mut [u32]
) -> BasicValueEnum<'ctx>
[src]
&self,
value: BV,
indexes: &mut [u32]
) -> BasicValueEnum<'ctx>
impl<'ctx> AnyValue<'ctx> for ArrayValue<'ctx>
[src]
fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>
[src]
fn print_to_string(&self) -> LLVMString
[src]
impl<'ctx> BasicValue<'ctx> for ArrayValue<'ctx>
[src]
fn as_basic_value_enum(&self) -> BasicValueEnum<'ctx>
[src]
fn as_instruction_value(&self) -> Option<InstructionValue<'ctx>>
[src]
fn get_first_use(&self) -> Option<BasicValueUse<'_>>
[src]
fn set_name(&self, name: &str)
[src]
impl<'ctx> Clone for ArrayValue<'ctx>
[src]
fn clone(&self) -> ArrayValue<'ctx>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn from(value: ArrayValue<'_>) -> AggregateValueEnum<'_>
[src]
impl<'ctx> From<ArrayValue<'ctx>> for AnyValueEnum<'ctx>
[src]
fn from(value: ArrayValue<'_>) -> AnyValueEnum<'_>
[src]
impl<'ctx> From<ArrayValue<'ctx>> for BasicValueEnum<'ctx>
[src]
fn from(value: ArrayValue<'_>) -> BasicValueEnum<'_>
[src]
impl<'ctx> From<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>
[src]
fn from(value: ArrayValue<'_>) -> BasicMetadataValueEnum<'_>
[src]
impl<'ctx> Hash for ArrayValue<'ctx>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'ctx> PartialEq<AggregateValueEnum<'ctx>> for ArrayValue<'ctx>
[src]
fn eq(&self, other: &AggregateValueEnum<'ctx>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for ArrayValue<'ctx>
[src]
fn eq(&self, other: &AnyValueEnum<'ctx>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'ctx> PartialEq<ArrayValue<'ctx>> for ArrayValue<'ctx>
[src]
fn eq(&self, other: &ArrayValue<'ctx>) -> bool
[src]
fn ne(&self, other: &ArrayValue<'ctx>) -> bool
[src]
impl<'ctx> PartialEq<ArrayValue<'ctx>> for AggregateValueEnum<'ctx>
[src]
fn eq(&self, other: &ArrayValue<'ctx>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'ctx> PartialEq<ArrayValue<'ctx>> for AnyValueEnum<'ctx>
[src]
fn eq(&self, other: &ArrayValue<'ctx>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'ctx> PartialEq<ArrayValue<'ctx>> for BasicValueEnum<'ctx>
[src]
fn eq(&self, other: &ArrayValue<'ctx>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'ctx> PartialEq<ArrayValue<'ctx>> for BasicMetadataValueEnum<'ctx>
[src]
fn eq(&self, other: &ArrayValue<'ctx>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>
[src]
fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for ArrayValue<'ctx>
[src]
fn eq(&self, other: &BasicValueEnum<'ctx>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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.
fn try_from(value: AggregateValueEnum<'ctx>) -> Result<Self, Self::Error>
[src]
impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for ArrayValue<'ctx>
[src]
type Error = ()
The type returned in the event of a conversion error.
fn try_from(value: AnyValueEnum<'ctx>) -> Result<Self, Self::Error>
[src]
impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for ArrayValue<'ctx>
[src]
type Error = ()
The type returned in the event of a conversion error.
fn try_from(value: BasicMetadataValueEnum<'ctx>) -> Result<Self, Self::Error>
[src]
impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for ArrayValue<'ctx>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,