[−][src]Struct inkwell::values::VectorValue
Methods
impl VectorValue
[src]
pub fn is_const(&self) -> bool
[src]
Determines whether or not a VectorValue
is a constant.
Example
use inkwell::context::Context; let context = Context::create(); let i8_type = context.i8_type(); let i8_vec_type = i8_type.vec_type(3); let i8_vec_zero = i8_vec_type.const_zero(); assert!(i8_vec_zero.is_const());
pub fn is_constant_vector(&self) -> bool
[src]
pub fn is_constant_data_vector(&self) -> bool
[src]
pub fn print_to_string(&self) -> LLVMString
[src]
pub fn print_to_stderr(&self)
[src]
pub fn get_name(&self) -> &CStr
[src]
pub fn set_name(&self, name: &str)
[src]
pub fn get_type(&self) -> VectorType
[src]
pub fn is_null(&self) -> bool
[src]
pub fn is_undef(&self) -> bool
[src]
pub fn as_instruction(&self) -> Option<InstructionValue>
[src]
pub fn const_extract_element(&self, index: IntValue) -> BasicValueEnum
[src]
pub fn const_insert_element<BV: BasicValue>(
&self,
index: IntValue,
value: BV
) -> BasicValueEnum
[src]
&self,
index: IntValue,
value: BV
) -> BasicValueEnum
pub fn has_metadata(&self) -> bool
[src]
pub fn get_metadata(&self, kind_id: u32) -> Option<MetadataValue>
[src]
pub fn set_metadata(&self, metadata: MetadataValue, kind_id: u32)
[src]
pub fn replace_all_uses_with(&self, other: VectorValue)
[src]
pub fn const_string(string: &str, null_terminated: bool) -> Self
[src]
Creates a const string which may be null terminated.
Example
use inkwell::values::VectorValue; let string = VectorValue::const_string("my_string", false); assert_eq!(string.print_to_string().to_string(), "[9 x i8] c\"my_string\"");
pub fn is_const_string(&self) -> bool
[src]
Creates a const string which may be null terminated.
Example
use inkwell::values::VectorValue; let string = VectorValue::const_string("my_string", false); assert!(string.is_const_string());
pub fn get_string_constant(&self) -> &CStr
[src]
pub fn get_element_as_constant(&self, index: u32) -> BasicValueEnum
[src]
pub fn const_select<BV: BasicValue>(
&self,
then: BV,
else_: BV
) -> BasicValueEnum
[src]
&self,
then: BV,
else_: BV
) -> BasicValueEnum
pub fn const_shuffle_vector(
&self,
right: VectorValue,
mask: VectorValue
) -> VectorValue
[src]
&self,
right: VectorValue,
mask: VectorValue
) -> VectorValue
Trait Implementations
impl BasicValue for VectorValue
[src]
fn as_basic_value_enum(&self) -> BasicValueEnum
[src]
fn as_instruction_value(&self) -> Option<InstructionValue>
[src]
fn get_first_use(&self) -> Option<BasicValueUse>
[src]
impl IntMathValue for VectorValue
[src]
type BaseType = VectorType
fn new(value: LLVMValueRef) -> Self
[src]
impl FloatMathValue for VectorValue
[src]
type BaseType = VectorType
fn new(value: LLVMValueRef) -> Self
[src]
impl PointerMathValue for VectorValue
[src]
type BaseType = VectorType
fn new(value: LLVMValueRef) -> Self
[src]
impl AnyValue for VectorValue
[src]
fn as_any_value_enum(&self) -> AnyValueEnum
[src]
impl Eq for VectorValue
[src]
impl Clone for VectorValue
[src]
fn clone(&self) -> VectorValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<VectorValue> for AnyValueEnum
[src]
fn eq(&self, other: &VectorValue) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<AnyValueEnum> for VectorValue
[src]
fn eq(&self, other: &AnyValueEnum) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<VectorValue> for BasicValueEnum
[src]
fn eq(&self, other: &VectorValue) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<BasicValueEnum> for VectorValue
[src]
fn eq(&self, other: &BasicValueEnum) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<VectorValue> for BasicMetadataValueEnum
[src]
fn eq(&self, other: &VectorValue) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<BasicMetadataValueEnum> for VectorValue
[src]
fn eq(&self, other: &BasicMetadataValueEnum) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<VectorValue> for VectorValue
[src]
fn eq(&self, other: &VectorValue) -> bool
[src]
fn ne(&self, other: &VectorValue) -> bool
[src]
impl From<VectorValue> for AnyValueEnum
[src]
fn from(value: VectorValue) -> AnyValueEnum
[src]
impl From<VectorValue> for BasicValueEnum
[src]
fn from(value: VectorValue) -> BasicValueEnum
[src]
impl From<VectorValue> for BasicMetadataValueEnum
[src]
fn from(value: VectorValue) -> BasicMetadataValueEnum
[src]
impl Copy for VectorValue
[src]
impl Hash for VectorValue
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Debug for VectorValue
[src]
impl TryFrom<BasicValueEnum> for VectorValue
[src]
Auto Trait Implementations
impl !Sync for VectorValue
impl !Send for VectorValue
impl Unpin for VectorValue
impl UnwindSafe for VectorValue
impl RefUnwindSafe for VectorValue
Blanket Implementations
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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,