pub struct FunctionType<'ctx>(/* private fields */);
Expand description
Implementations§
Source§impl<'ctx> FunctionType<'ctx>
impl<'ctx> FunctionType<'ctx>
Sourcepub fn num_argument_types(&self) -> usize
pub fn num_argument_types(&self) -> usize
Get the number of argument types
Sourcepub fn argument_types(&self) -> Vec<Type<'ctx>>
pub fn argument_types(&self) -> Vec<Type<'ctx>>
Get argument types in an array
Sourcepub fn argument_type(&self, index: usize) -> Option<Type<'ctx>>
pub fn argument_type(&self, index: usize) -> Option<Type<'ctx>>
Get the argument type at a given index
Sourcepub fn return_type(&self) -> Type<'ctx>
pub fn return_type(&self) -> Type<'ctx>
Get the return type
Sourcepub fn has_return_type(&self) -> bool
pub fn has_return_type(&self) -> bool
Check if the return type is not a void type
Sourcepub fn is_var_arg(&self) -> bool
pub fn is_var_arg(&self) -> bool
Check if the function type is variable argument
Trait Implementations§
Source§impl<'ctx> Clone for FunctionType<'ctx>
impl<'ctx> Clone for FunctionType<'ctx>
Source§fn clone(&self) -> FunctionType<'ctx>
fn clone(&self) -> FunctionType<'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 FunctionType<'ctx>
impl<'ctx> Debug for FunctionType<'ctx>
Source§impl<'ctx> Hash for FunctionType<'ctx>
impl<'ctx> Hash for FunctionType<'ctx>
Source§impl<'ctx> PartialEq for FunctionType<'ctx>
impl<'ctx> PartialEq for FunctionType<'ctx>
impl<'ctx> Copy for FunctionType<'ctx>
impl<'ctx> Eq for FunctionType<'ctx>
impl<'ctx> Send for FunctionType<'ctx>
impl<'ctx> StructuralPartialEq for FunctionType<'ctx>
impl<'ctx> Sync for FunctionType<'ctx>
Auto Trait Implementations§
impl<'ctx> Freeze for FunctionType<'ctx>
impl<'ctx> RefUnwindSafe for FunctionType<'ctx>
impl<'ctx> Unpin for FunctionType<'ctx>
impl<'ctx> UnwindSafe for FunctionType<'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