[][src]Enum inkwell::types::AnyTypeEnum

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

A wrapper for any BasicType, VoidType, or FunctionType.

Variants

ArrayType(ArrayType<'ctx>)

A contiguous homogeneous container type.

FloatType(FloatType<'ctx>)

A floating point type.

FunctionType(FunctionType<'ctx>)

A function return and parameter definition.

IntType(IntType<'ctx>)

An integer type.

PointerType(PointerType<'ctx>)

A pointer type.

StructType(StructType<'ctx>)

A contiguous heterogeneous container type.

VectorType(VectorType<'ctx>)

A contiguous homogeneous "SIMD" container type.

VoidType(VoidType<'ctx>)

A valueless type.

Implementations

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

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

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

pub fn into_function_type(self) -> FunctionType<'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 into_void_type(self) -> VoidType<'ctx>[src]

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

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

pub fn is_function_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]

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

pub fn size_of(&self) -> Option<IntValue<'ctx>>[src]

Trait Implementations

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

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

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

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

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

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

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

impl<'ctx> From<FunctionType<'ctx>> for AnyTypeEnum<'ctx>[src]

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

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

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

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

impl<'ctx> From<VoidType<'ctx>> for AnyTypeEnum<'ctx>[src]

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

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

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

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

type Error = ()

The type returned in the event of a conversion error.

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

type Error = ()

The type returned in the event of a conversion error.

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

type Error = ()

The type returned in the event of a conversion error.

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

type Error = ()

The type returned in the event of a conversion error.

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

type Error = ()

The type returned in the event of a conversion error.

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

type Error = ()

The type returned in the event of a conversion error.

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

type Error = ()

The type returned in the event of a conversion error.

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

type Error = ()

The type returned in the event of a conversion error.

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

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'ctx> RefUnwindSafe for AnyTypeEnum<'ctx>

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

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

impl<'ctx> Unpin for AnyTypeEnum<'ctx>

impl<'ctx> UnwindSafe for AnyTypeEnum<'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.