pub struct PointerValue { /* private fields */ }
Implementations§
Source§impl PointerValue
impl PointerValue
pub fn new(reference: LLVMValueRef, element: LLVMValue) -> Self
pub fn get_reference(&self) -> LLVMValueRef
pub fn get_element(&self, ctx: &Context) -> LLVMValue
pub fn get_element_type(&self, ctx: &Context) -> LLVMType
pub fn get_llvm_type(&self, ctx: &Context) -> LLVMType
pub fn set_reference(&mut self, reference: LLVMValueRef)
pub fn get_struct_field_ptr( &self, ctx: &Context, name: &str, ) -> Option<LLVMValue>
pub fn is_undef(&self) -> bool
Trait Implementations§
Source§impl Clone for PointerValue
impl Clone for PointerValue
Source§fn clone(&self) -> PointerValue
fn clone(&self) -> PointerValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PointerValue
impl Debug for PointerValue
Source§impl From<PointerValue> for LLVMValue
impl From<PointerValue> for LLVMValue
Source§fn from(value: PointerValue) -> Self
fn from(value: PointerValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for PointerValue
impl !RefUnwindSafe for PointerValue
impl !Send for PointerValue
impl !Sync for PointerValue
impl Unpin for PointerValue
impl !UnwindSafe for PointerValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more