Struct llvm_rs::types::PointerType
source · pub struct PointerType(_);Expand description
A pointer type.
Implementations§
source§impl PointerType
impl PointerType
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 PointerType
impl Debug for PointerType
source§impl Deref for PointerType
impl Deref for PointerType
source§impl<'a> From<&'a PointerType> for LLVMTypeRef
impl<'a> From<&'a PointerType> for LLVMTypeRef
source§fn from(ty: &'a PointerType) -> LLVMTypeRef
fn from(ty: &'a PointerType) -> LLVMTypeRef
Converts to this type from the input type.
source§impl<'a> From<&'a mut PointerType> for LLVMTypeRef
impl<'a> From<&'a mut PointerType> for LLVMTypeRef
source§fn from(ty: &'a mut PointerType) -> LLVMTypeRef
fn from(ty: &'a mut PointerType) -> LLVMTypeRef
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMType> for &'a PointerType
impl<'a> From<*mut LLVMType> for &'a PointerType
source§fn from(ty: LLVMTypeRef) -> &'a PointerType
fn from(ty: LLVMTypeRef) -> &'a PointerType
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMType> for &'a mut PointerType
impl<'a> From<*mut LLVMType> for &'a mut PointerType
source§fn from(ty: LLVMTypeRef) -> &'a mut PointerType
fn from(ty: LLVMTypeRef) -> &'a mut PointerType
Converts to this type from the input type.
source§impl GetContext for PointerType
impl GetContext for PointerType
source§fn get_context(&self) -> &Context
fn get_context(&self) -> &Context
Returns a reference to the context that owns this value. Read more