[−][src]Struct inkwell::values::PointerValue
Methods
impl PointerValue
[src]
pub fn get_name(&self) -> &CStr
[src]
pub fn set_name(&self, name: &str)
[src]
pub fn get_type(&self) -> PointerType
[src]
pub fn is_null(&self) -> bool
[src]
pub fn is_undef(&self) -> bool
[src]
pub fn is_const(&self) -> bool
[src]
Determines whether or not a PointerValue
is a constant.
Example
use inkwell::AddressSpace; use inkwell::context::Context; let context = Context::create(); let void_type = context.void_type();
pub fn print_to_string(&self) -> LLVMString
[src]
pub fn print_to_stderr(&self)
[src]
pub fn as_instruction(&self) -> Option<InstructionValue>
[src]
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 unsafe fn const_gep(&self, ordered_indexes: &[IntValue]) -> PointerValue
[src]
GEP is very likely to segfault if indexes are used incorrectly, and is therefore an unsafe function. Maybe we can change this in the future.
pub unsafe fn const_in_bounds_gep(
&self,
ordered_indexes: &[IntValue]
) -> PointerValue
[src]
&self,
ordered_indexes: &[IntValue]
) -> PointerValue
GEP is very likely to segfault if indexes are used incorrectly, and is therefore an unsafe function. Maybe we can change this in the future.
pub fn const_to_int(&self, int_type: IntType) -> IntValue
[src]
pub fn const_cast(&self, ptr_type: PointerType) -> PointerValue
[src]
pub fn const_address_space_cast(&self, ptr_type: PointerType) -> PointerValue
[src]
pub fn replace_all_uses_with(&self, other: PointerValue)
[src]
Trait Implementations
impl BasicValue for PointerValue
[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 PointerMathValue for PointerValue
[src]
type BaseType = PointerType
fn new(value: LLVMValueRef) -> Self
[src]
impl AnyValue for PointerValue
[src]
fn as_any_value_enum(&self) -> AnyValueEnum
[src]
impl Eq for PointerValue
[src]
impl Into<Either<FunctionValue, PointerValue>> for PointerValue
[src]
fn into(self) -> Either<FunctionValue, PointerValue>
[src]
impl Clone for PointerValue
[src]
fn clone(&self) -> PointerValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<PointerValue> for AnyValueEnum
[src]
fn eq(&self, other: &PointerValue) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<AnyValueEnum> for PointerValue
[src]
fn eq(&self, other: &AnyValueEnum) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<PointerValue> for BasicValueEnum
[src]
fn eq(&self, other: &PointerValue) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<BasicValueEnum> for PointerValue
[src]
fn eq(&self, other: &BasicValueEnum) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<PointerValue> for BasicMetadataValueEnum
[src]
fn eq(&self, other: &PointerValue) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<BasicMetadataValueEnum> for PointerValue
[src]
fn eq(&self, other: &BasicMetadataValueEnum) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<PointerValue> for PointerValue
[src]
fn eq(&self, other: &PointerValue) -> bool
[src]
fn ne(&self, other: &PointerValue) -> bool
[src]
impl From<PointerValue> for AnyValueEnum
[src]
fn from(value: PointerValue) -> AnyValueEnum
[src]
impl From<PointerValue> for BasicValueEnum
[src]
fn from(value: PointerValue) -> BasicValueEnum
[src]
impl From<PointerValue> for BasicMetadataValueEnum
[src]
fn from(value: PointerValue) -> BasicMetadataValueEnum
[src]
impl Copy for PointerValue
[src]
impl Hash for PointerValue
[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 PointerValue
[src]
impl TryFrom<BasicValueEnum> for PointerValue
[src]
Auto Trait Implementations
impl !Sync for PointerValue
impl !Send for PointerValue
impl Unpin for PointerValue
impl UnwindSafe for PointerValue
impl RefUnwindSafe for PointerValue
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,