Enum inkwell::types::BasicMetadataTypeEnum
source · 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 AsTypeRef for BasicMetadataTypeEnum<'_>
impl AsTypeRef for BasicMetadataTypeEnum<'_>
source§fn as_type_ref(&self) -> LLVMTypeRef
fn as_type_ref(&self) -> LLVMTypeRef
Returns the internal LLVM reference behind the type
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 for BasicMetadataTypeEnum<'ctx>
impl<'ctx> PartialEq 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 ==
.source§impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>
impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for ArrayType<'ctx>
impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for ArrayType<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for BasicTypeEnum<'ctx>
impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for BasicTypeEnum<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for FloatType<'ctx>
impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for FloatType<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for IntType<'ctx>
impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for IntType<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for MetadataType<'ctx>
impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for MetadataType<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for PointerType<'ctx>
impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for PointerType<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for StructType<'ctx>
impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for StructType<'ctx>
source§impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for VectorType<'ctx>
impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for VectorType<'ctx>
impl<'ctx> Copy for BasicMetadataTypeEnum<'ctx>
impl<'ctx> Eq for BasicMetadataTypeEnum<'ctx>
impl<'ctx> StructuralPartialEq for BasicMetadataTypeEnum<'ctx>
Auto Trait Implementations§
impl<'ctx> Freeze for BasicMetadataTypeEnum<'ctx>
impl<'ctx> RefUnwindSafe for BasicMetadataTypeEnum<'ctx>
impl<'ctx> !Send for BasicMetadataTypeEnum<'ctx>
impl<'ctx> !Sync for BasicMetadataTypeEnum<'ctx>
impl<'ctx> Unpin for BasicMetadataTypeEnum<'ctx>
impl<'ctx> UnwindSafe for BasicMetadataTypeEnum<'ctx>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more