pub struct ReferenceValue { /* private fields */ }
Implementations§
Source§impl ReferenceValue
impl ReferenceValue
pub fn new(reference: LLVMValueRef, element: LLVMValue) -> Self
pub fn get_reference(&self) -> LLVMValueRef
pub fn store(&self, ctx: &Context, value: LLVMValue)
pub fn get_value(&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 ReferenceValue
impl Clone for ReferenceValue
Source§fn clone(&self) -> ReferenceValue
fn clone(&self) -> ReferenceValue
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 ReferenceValue
impl Debug for ReferenceValue
Source§impl From<ReferenceValue> for LLVMValue
impl From<ReferenceValue> for LLVMValue
Source§fn from(value: ReferenceValue) -> Self
fn from(value: ReferenceValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReferenceValue
impl !RefUnwindSafe for ReferenceValue
impl !Send for ReferenceValue
impl !Sync for ReferenceValue
impl Unpin for ReferenceValue
impl !UnwindSafe for ReferenceValue
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