pub struct StructValue { /* private fields */ }
Implementations§
Source§impl StructValue
impl StructValue
pub fn new( reference: LLVMValueRef, name: String, field_index: HashMap<String, usize>, field_values: Vec<LLVMValue>, ) -> Self
pub fn get_reference(&self) -> LLVMValueRef
pub fn get_field(&self, ctx: &Context, name: &str) -> LLVMValue
pub fn get_llvm_type(&self, ctx: &Context) -> LLVMType
pub fn with_field( &self, reference: LLVMValueRef, index: usize, value: LLVMValue, ) -> Self
pub fn get_name(&self) -> String
pub fn get_field_index(&self, name: &str) -> Option<usize>
pub fn get_field_by_index( &self, ctx: &Context, index: usize, ) -> Option<LLVMValue>
pub fn simply_get_field_by_index(&self, index: usize) -> Option<LLVMValue>
pub fn set_reference(&mut self, reference: LLVMValueRef)
pub fn is_undef(&self) -> bool
Trait Implementations§
Source§impl Clone for StructValue
impl Clone for StructValue
Source§fn clone(&self) -> StructValue
fn clone(&self) -> StructValue
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 StructValue
impl Debug for StructValue
Source§impl From<StructValue> for LLVMValue
impl From<StructValue> for LLVMValue
Source§fn from(value: StructValue) -> Self
fn from(value: StructValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for StructValue
impl !RefUnwindSafe for StructValue
impl !Send for StructValue
impl !Sync for StructValue
impl Unpin for StructValue
impl !UnwindSafe for StructValue
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