Struct llvm_rs::types::IntegerType
source · pub struct IntegerType(_);Expand description
An integer type.
Implementations§
Methods from Deref<Target = Type>§
sourcepub fn is_sized(&self) -> bool
pub fn is_sized(&self) -> bool
Returns true if the size of the type is known at compile-time.
This is equivalent to the type implementing Sized in Rust
sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Returns true if this type is a function.
This is equivalent to FunctionType::is.
sourcepub fn is_struct(&self) -> bool
pub fn is_struct(&self) -> bool
Returns true if this type is a struct.
This is equivalent to StructType::is.
sourcepub fn is_pointer(&self) -> bool
pub fn is_pointer(&self) -> bool
Returns true if this type is a pointer.
This is equivalent to PointerType::is.
sourcepub fn is_integer(&self) -> bool
pub fn is_integer(&self) -> bool
Returns true if this type is an integer.
pub fn get_size(&self, target: &TargetData) -> usize
Trait Implementations§
source§impl Debug for IntegerType
impl Debug for IntegerType
source§impl Deref for IntegerType
impl Deref for IntegerType
source§impl<'a> From<&'a IntegerType> for LLVMTypeRef
impl<'a> From<&'a IntegerType> for LLVMTypeRef
source§fn from(ty: &'a IntegerType) -> LLVMTypeRef
fn from(ty: &'a IntegerType) -> LLVMTypeRef
Converts to this type from the input type.
source§impl<'a> From<&'a mut IntegerType> for LLVMTypeRef
impl<'a> From<&'a mut IntegerType> for LLVMTypeRef
source§fn from(ty: &'a mut IntegerType) -> LLVMTypeRef
fn from(ty: &'a mut IntegerType) -> LLVMTypeRef
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMType> for &'a IntegerType
impl<'a> From<*mut LLVMType> for &'a IntegerType
source§fn from(ty: LLVMTypeRef) -> &'a IntegerType
fn from(ty: LLVMTypeRef) -> &'a IntegerType
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMType> for &'a mut IntegerType
impl<'a> From<*mut LLVMType> for &'a mut IntegerType
source§fn from(ty: LLVMTypeRef) -> &'a mut IntegerType
fn from(ty: LLVMTypeRef) -> &'a mut IntegerType
Converts to this type from the input type.
source§impl GetContext for IntegerType
impl GetContext for IntegerType
source§fn get_context(&self) -> &Context
fn get_context(&self) -> &Context
Returns a reference to the context that owns this value. Read more