pub fn with_args(mut self, arguments: &[(&str, Type)]) -> Self {
        for argument in arguments {
            self.argument_names.push(argument.0.to_string());
            self.argument_types.push(argument.1);
        }
        self
    }
/// Add many arguments to a function.
///
/// The default is no argument types.
///
/// # Examples
///
/// ```
/// # use yair::*;
/// # let mut context = Context::new();
/// # let module = context.create_module().build();
/// # let i8_ty = context.get_int_type(8);
/// # let u32_ty = context.get_uint_type(32);
/// # let function_builder = module.create_function(&mut context);
/// function_builder.with_args(&[("a", i8_ty), ("b", u32_ty)]);
/// ```
Add many arguments to a function.
The default is no argument types.
Add many arguments to a function . The default is no argument types .
pub fn with_args(mut self, arguments: &[(&str, Type)]) -> Self {
        for argument in arguments {
            self.argument_names.push(argument.0.to_string());
            self.argument_types.push(argument.1);
        }
        self
    }
pub fn with_args ( mut self , arguments : & [ ( & str , Type ) ] ) -> Self { for argument in arguments { self . argument_names . push ( argument . 0 . to_string ( ) ) ; self . argument_types . push ( argument . 1 ) ; } self }
Add many arguments to a function.
Add many arguments to a function .
mut self
arguments
&[(&str, Type)]
mut self
arguments
&[(&str, Type)]
examples
None
use yair::*;
None
let mut context = context::new();
None
let module = context.create_module().build();
None
let i8_ty = context.get_int_type(8);
None
let u32_ty = context.get_uint_type(32);
None
let function_builder = module.create_function(&mut context);
None