[][src]Struct llir::types::FunctionType

pub struct FunctionType<'ctx>(_, _);

Implementations

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

pub fn num_argument_types(&self) -> usize[src]

Get the number of argument types

pub fn argument_types(&self) -> Vec<Type<'ctx>>[src]

Get argument types in an array

pub fn argument_type(&self, index: usize) -> Option<Type<'ctx>>[src]

Get the argument type at a given index

pub fn return_type(&self) -> Type<'ctx>[src]

Get the return type

pub fn has_return_type(&self) -> bool[src]

Check if the return type is not a void type

pub fn is_var_arg(&self) -> bool[src]

Check if the function type is variable argument

Trait Implementations

impl<'ctx> AsType<'ctx> for FunctionType<'ctx>[src]

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

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

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

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

impl<'ctx> Hash for FunctionType<'ctx>[src]

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

impl<'ctx> Send for FunctionType<'ctx>[src]

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

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

impl<'ctx> Sync for FunctionType<'ctx>[src]

Auto Trait Implementations

impl<'ctx> RefUnwindSafe for FunctionType<'ctx>

impl<'ctx> Unpin for FunctionType<'ctx>

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