pub enum BasicMetadataTypeEnum<'ctx> {
ArrayType(ArrayType<'ctx>),
FloatType(FloatType<'ctx>),
IntType(IntType<'ctx>),
PointerType(PointerType<'ctx>),
StructType(StructType<'ctx>),
VectorType(VectorType<'ctx>),
MetadataType(MetadataType<'ctx>),
}Variants§
ArrayType(ArrayType<'ctx>)
FloatType(FloatType<'ctx>)
IntType(IntType<'ctx>)
PointerType(PointerType<'ctx>)
StructType(StructType<'ctx>)
VectorType(VectorType<'ctx>)
MetadataType(MetadataType<'ctx>)
Implementations§
source§impl<'ctx> BasicMetadataTypeEnum<'ctx>
impl<'ctx> BasicMetadataTypeEnum<'ctx>
pub fn into_array_type(self) -> ArrayType<'ctx>
pub fn into_float_type(self) -> FloatType<'ctx>
pub fn into_int_type(self) -> IntType<'ctx>
pub fn into_pointer_type(self) -> PointerType<'ctx>
pub fn into_struct_type(self) -> StructType<'ctx>
pub fn into_vector_type(self) -> VectorType<'ctx>
pub fn into_metadata_type(self) -> MetadataType<'ctx>
pub fn is_array_type(self) -> bool
pub fn is_float_type(self) -> bool
pub fn is_int_type(self) -> bool
pub fn is_metadata_type(self) -> bool
pub fn is_pointer_type(self) -> bool
pub fn is_struct_type(self) -> bool
pub fn is_vector_type(self) -> bool
sourcepub fn print_to_string(self) -> LLVMString
pub fn print_to_string(self) -> LLVMString
Print the definition of a BasicMetadataTypeEnum to LLVMString.
Trait Implementations§
source§impl<'ctx> Clone for BasicMetadataTypeEnum<'ctx>
impl<'ctx> Clone for BasicMetadataTypeEnum<'ctx>
source§fn clone(&self) -> BasicMetadataTypeEnum<'ctx>
fn clone(&self) -> BasicMetadataTypeEnum<'ctx>
Returns a copy 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 moresource§impl<'ctx> Debug for BasicMetadataTypeEnum<'ctx>
impl<'ctx> Debug for BasicMetadataTypeEnum<'ctx>
source§impl Display for BasicMetadataTypeEnum<'_>
impl Display for BasicMetadataTypeEnum<'_>
source§impl<'ctx> From<ArrayType<'ctx>> for BasicMetadataTypeEnum<'ctx>
impl<'ctx> From<ArrayType<'ctx>> for BasicMetadataTypeEnum<'ctx>
source§fn from(value: ArrayType<'_>) -> BasicMetadataTypeEnum<'_>
fn from(value: ArrayType<'_>) -> BasicMetadataTypeEnum<'_>
Converts to this type from the input type.
source§impl<'ctx> From<BasicTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>
impl<'ctx> From<BasicTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>
source§fn from(value: BasicTypeEnum<'ctx>) -> Self
fn from(value: BasicTypeEnum<'ctx>) -> Self
Converts to this type from the input type.
source§impl<'ctx> From<FloatType<'ctx>> for BasicMetadataTypeEnum<'ctx>
impl<'ctx> From<FloatType<'ctx>> for BasicMetadataTypeEnum<'ctx>
source§fn from(value: FloatType<'_>) -> BasicMetadataTypeEnum<'_>
fn from(value: FloatType<'_>) -> BasicMetadataTypeEnum<'_>
Converts to this type from the input type.
source§impl<'ctx> From<IntType<'ctx>> for BasicMetadataTypeEnum<'ctx>
impl<'ctx> From<IntType<'ctx>> for BasicMetadataTypeEnum<'ctx>
source§fn from(value: IntType<'_>) -> BasicMetadataTypeEnum<'_>
fn from(value: IntType<'_>) -> BasicMetadataTypeEnum<'_>
Converts to this type from the input type.
source§impl<'ctx> From<MetadataType<'ctx>> for BasicMetadataTypeEnum<'ctx>
impl<'ctx> From<MetadataType<'ctx>> for BasicMetadataTypeEnum<'ctx>
source§fn from(value: MetadataType<'_>) -> BasicMetadataTypeEnum<'_>
fn from(value: MetadataType<'_>) -> BasicMetadataTypeEnum<'_>
Converts to this type from the input type.
source§impl<'ctx> From<PointerType<'ctx>> for BasicMetadataTypeEnum<'ctx>
impl<'ctx> From<PointerType<'ctx>> for BasicMetadataTypeEnum<'ctx>
source§fn from(value: PointerType<'_>) -> BasicMetadataTypeEnum<'_>
fn from(value: PointerType<'_>) -> BasicMetadataTypeEnum<'_>
Converts to this type from the input type.
source§impl<'ctx> From<StructType<'ctx>> for BasicMetadataTypeEnum<'ctx>
impl<'ctx> From<StructType<'ctx>> for BasicMetadataTypeEnum<'ctx>
source§fn from(value: StructType<'_>) -> BasicMetadataTypeEnum<'_>
fn from(value: StructType<'_>) -> BasicMetadataTypeEnum<'_>
Converts to this type from the input type.
source§impl<'ctx> From<VectorType<'ctx>> for BasicMetadataTypeEnum<'ctx>
impl<'ctx> From<VectorType<'ctx>> for BasicMetadataTypeEnum<'ctx>
source§fn from(value: VectorType<'_>) -> BasicMetadataTypeEnum<'_>
fn from(value: VectorType<'_>) -> BasicMetadataTypeEnum<'_>
Converts to this type from the input type.
source§impl<'ctx> PartialEq<BasicMetadataTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>
impl<'ctx> PartialEq<BasicMetadataTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>
source§fn eq(&self, other: &BasicMetadataTypeEnum<'ctx>) -> bool
fn eq(&self, other: &BasicMetadataTypeEnum<'ctx>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.