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