[][src]Struct inkwell::values::PointerValue

pub struct PointerValue { /* fields omitted */ }

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]

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]

impl PointerMathValue for PointerValue[src]

type BaseType = PointerType

impl AnyValue for PointerValue[src]

impl Eq for PointerValue[src]

impl Into<Either<FunctionValue, PointerValue>> for PointerValue[src]

impl Clone for PointerValue[src]

impl PartialEq<PointerValue> for AnyValueEnum[src]

impl PartialEq<AnyValueEnum> for PointerValue[src]

impl PartialEq<PointerValue> for BasicValueEnum[src]

impl PartialEq<BasicValueEnum> for PointerValue[src]

impl PartialEq<PointerValue> for BasicMetadataValueEnum[src]

impl PartialEq<BasicMetadataValueEnum> for PointerValue[src]

impl PartialEq<PointerValue> for PointerValue[src]

impl From<PointerValue> for AnyValueEnum[src]

impl From<PointerValue> for BasicValueEnum[src]

impl From<PointerValue> for BasicMetadataValueEnum[src]

impl Copy for PointerValue[src]

impl Hash for PointerValue[src]

impl Debug for PointerValue[src]

impl TryFrom<BasicValueEnum> for PointerValue[src]

type Error = &'static str

The type returned in the event of a conversion error.

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]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[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.

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

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

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