[][src]Enum inkwell::types::BasicTypeEnum

pub enum BasicTypeEnum<'ctx> {
    ArrayType(ArrayType<'ctx>),
    FloatType(FloatType<'ctx>),
    IntType(IntType<'ctx>),
    PointerType(PointerType<'ctx>),
    StructType(StructType<'ctx>),
    VectorType(VectorType<'ctx>),
}

A wrapper for any BasicType.

Variants

ArrayType(ArrayType<'ctx>)

A contiguous homogeneous container type.

FloatType(FloatType<'ctx>)

A floating point type.

IntType(IntType<'ctx>)
PointerType(PointerType<'ctx>)

A pointer type.

StructType(StructType<'ctx>)

A contiguous heterogeneous container type.

VectorType(VectorType<'ctx>)

A contiguous homogeneous "SIMD" container type.

Implementations

impl<'ctx> BasicTypeEnum<'ctx>[src]

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

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

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

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

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

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

pub fn is_array_type(self) -> bool[src]

pub fn is_float_type(self) -> bool[src]

pub fn is_int_type(self) -> bool[src]

pub fn is_pointer_type(self) -> bool[src]

pub fn is_struct_type(self) -> bool[src]

pub fn is_vector_type(self) -> bool[src]

Trait Implementations

impl<'ctx> AnyType<'ctx> for BasicTypeEnum<'ctx>[src]

impl<'ctx> BasicType<'ctx> for BasicTypeEnum<'ctx>[src]

impl<'ctx> Clone for BasicTypeEnum<'ctx>[src]

impl<'ctx> Copy for BasicTypeEnum<'ctx>[src]

impl<'ctx> Debug for BasicTypeEnum<'ctx>[src]

impl<'ctx> Eq for BasicTypeEnum<'ctx>[src]

impl<'ctx> From<ArrayType<'ctx>> for BasicTypeEnum<'ctx>[src]

impl<'ctx> From<FloatType<'ctx>> for BasicTypeEnum<'ctx>[src]

impl<'ctx> From<IntType<'ctx>> for BasicTypeEnum<'ctx>[src]

impl<'ctx> From<PointerType<'ctx>> for BasicTypeEnum<'ctx>[src]

impl<'ctx> From<StructType<'ctx>> for BasicTypeEnum<'ctx>[src]

impl<'ctx> From<VectorType<'ctx>> for BasicTypeEnum<'ctx>[src]

impl<'ctx> PartialEq<BasicTypeEnum<'ctx>> for BasicTypeEnum<'ctx>[src]

impl<'ctx> StructuralEq for BasicTypeEnum<'ctx>[src]

impl<'ctx> StructuralPartialEq for BasicTypeEnum<'ctx>[src]

impl<'ctx> TryFrom<AnyTypeEnum<'ctx>> for BasicTypeEnum<'ctx>[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for ArrayType<'ctx>[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for FloatType<'ctx>[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for IntType<'ctx>[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for PointerType<'ctx>[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for StructType<'ctx>[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'ctx> TryFrom<BasicTypeEnum<'ctx>> for VectorType<'ctx>[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'ctx> RefUnwindSafe for BasicTypeEnum<'ctx>

impl<'ctx> !Send for BasicTypeEnum<'ctx>

impl<'ctx> !Sync for BasicTypeEnum<'ctx>

impl<'ctx> Unpin for BasicTypeEnum<'ctx>

impl<'ctx> UnwindSafe for BasicTypeEnum<'ctx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.