pub enum LLVMType {
Show 14 variants
Int1(LLVMTypeRef),
Int8(LLVMTypeRef),
Int16(LLVMTypeRef),
Int32(LLVMTypeRef),
Int64(LLVMTypeRef),
Float(LLVMTypeRef),
Double(LLVMTypeRef),
Struct(String, Vec<(String, LLVMType)>, LLVMTypeRef),
Array(Box<LLVMType>, LLVMTypeRef),
Function(Box<LLVMType>, Vec<(String, LLVMType)>, LLVMTypeRef),
Pointer(Box<LLVMType>, LLVMTypeRef),
Ref(Box<LLVMType>, LLVMTypeRef),
String(LLVMTypeRef),
Unit(LLVMTypeRef),
}
Variants§
Int1(LLVMTypeRef)
Int8(LLVMTypeRef)
Int16(LLVMTypeRef)
Int32(LLVMTypeRef)
Int64(LLVMTypeRef)
Float(LLVMTypeRef)
Double(LLVMTypeRef)
Struct(String, Vec<(String, LLVMType)>, LLVMTypeRef)
Array(Box<LLVMType>, LLVMTypeRef)
Function(Box<LLVMType>, Vec<(String, LLVMType)>, LLVMTypeRef)
Pointer(Box<LLVMType>, LLVMTypeRef)
Ref(Box<LLVMType>, LLVMTypeRef)
String(LLVMTypeRef)
Unit(LLVMTypeRef)
Implementations§
Source§impl LLVMType
impl LLVMType
pub fn as_llvm_type_ref(&self) -> LLVMTypeRef
pub fn get_element_type(&self) -> LLVMType
pub fn get_type(&self) -> Type
pub fn get_function_param_type(&self, index: usize) -> LLVMType
pub fn get_struct_field_type(&self, index: usize) -> LLVMType
pub fn get_function_return_type(&self) -> LLVMType
pub fn get_undef(&self) -> LLVMValue
pub fn is_array(&self) -> bool
pub fn is_struct(&self) -> bool
pub fn i32() -> Self
pub fn is_function(&self) -> bool
pub fn is_float(&self) -> bool
pub fn is_double(&self) -> bool
pub fn is_pointer(&self) -> bool
pub fn is_i32(&self) -> bool
pub fn size(&self) -> usize
Trait Implementations§
Source§impl From<*mut LLVMType> for LLVMType
impl From<*mut LLVMType> for LLVMType
Source§fn from(ty: LLVMTypeRef) -> Self
fn from(ty: LLVMTypeRef) -> Self
Converts to this type from the input type.
Source§impl From<*mut LLVMValue> for LLVMType
impl From<*mut LLVMValue> for LLVMType
Source§fn from(value: LLVMValueRef) -> Self
fn from(value: LLVMValueRef) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for LLVMType
Auto Trait Implementations§
impl Freeze for LLVMType
impl RefUnwindSafe for LLVMType
impl !Send for LLVMType
impl !Sync for LLVMType
impl Unpin for LLVMType
impl UnwindSafe for LLVMType
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