pub struct EnumVariantValue { /* private fields */ }
Implementations§
Source§impl EnumVariantValue
impl EnumVariantValue
pub fn new( reference: LLVMValueRef, enum_name: String, variant_name: String, tag: Int32Value, value: Option<Box<LLVMValue>>, ) -> Self
pub fn get_reference(&self) -> LLVMValueRef
pub fn get_tag(&self) -> Int32Value
pub fn get_value(&self) -> Option<LLVMValue>
pub fn is_undef(&self) -> bool
pub fn get_llvm_type(&self, ctx: &Context) -> LLVMType
Trait Implementations§
Source§impl Clone for EnumVariantValue
impl Clone for EnumVariantValue
Source§fn clone(&self) -> EnumVariantValue
fn clone(&self) -> EnumVariantValue
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 moreAuto Trait Implementations§
impl Freeze for EnumVariantValue
impl !RefUnwindSafe for EnumVariantValue
impl !Send for EnumVariantValue
impl !Sync for EnumVariantValue
impl Unpin for EnumVariantValue
impl !UnwindSafe for EnumVariantValue
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