inkwell::types

Enum 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>

source

pub fn into_array_type(self) -> ArrayType<'ctx>

source

pub fn into_float_type(self) -> FloatType<'ctx>

source

pub fn into_int_type(self) -> IntType<'ctx>

source

pub fn into_pointer_type(self) -> PointerType<'ctx>

source

pub fn into_struct_type(self) -> StructType<'ctx>

source

pub fn into_vector_type(self) -> VectorType<'ctx>

source

pub fn into_metadata_type(self) -> MetadataType<'ctx>

source

pub fn is_array_type(self) -> bool

source

pub fn is_float_type(self) -> bool

source

pub fn is_int_type(self) -> bool

source

pub fn is_metadata_type(self) -> bool

source

pub fn is_pointer_type(self) -> bool

source

pub fn is_struct_type(self) -> bool

source

pub fn is_vector_type(self) -> bool

source

pub fn print_to_string(self) -> LLVMString

Print the definition of a BasicMetadataTypeEnum to LLVMString.

Trait Implementations§

source§

impl AsTypeRef for BasicMetadataTypeEnum<'_>

source§

fn as_type_ref(&self) -> LLVMTypeRef

Returns the internal LLVM reference behind the type
source§

impl<'ctx> Clone for BasicMetadataTypeEnum<'ctx>

source§

fn clone(&self) -> BasicMetadataTypeEnum<'ctx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'ctx> Debug for BasicMetadataTypeEnum<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for BasicMetadataTypeEnum<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'ctx> From<ArrayType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: ArrayType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<BasicTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: BasicTypeEnum<'ctx>) -> Self

Converts to this type from the input type.
source§

impl<'ctx> From<FloatType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: FloatType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<IntType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: IntType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<MetadataType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: MetadataType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<PointerType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: PointerType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<StructType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: StructType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> From<VectorType<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

fn from(value: VectorType<'_>) -> BasicMetadataTypeEnum<'_>

Converts to this type from the input type.
source§

impl<'ctx> PartialEq for BasicMetadataTypeEnum<'ctx>

source§

fn eq(&self, other: &BasicMetadataTypeEnum<'ctx>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for BasicMetadataTypeEnum<'ctx>

source§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: AnyTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for ArrayType<'ctx>

source§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for BasicTypeEnum<'ctx>

source§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for FloatType<'ctx>

source§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for IntType<'ctx>

source§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for MetadataType<'ctx>

source§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for PointerType<'ctx>

source§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for StructType<'ctx>

source§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> TryFrom<BasicMetadataTypeEnum<'ctx>> for VectorType<'ctx>

source§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: BasicMetadataTypeEnum<'ctx>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'ctx> Copy for BasicMetadataTypeEnum<'ctx>

source§

impl<'ctx> Eq for BasicMetadataTypeEnum<'ctx>

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.