pub fn with_arg(mut self, argument_name: &str, argument_type: Type) -> Self {
        self.argument_names.push(argument_name.to_string());
        self.argument_types.push(argument_type);
        self
    }
/// Add the argument types 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_arg("a", i8_ty).with_arg("b", u32_ty);
/// ```
Add the argument types to a function.
The default is no argument types.
Add the argument types to a function . The default is no argument types .
pub fn with_arg(mut self, argument_name: &str, argument_type: Type) -> Self {
        self.argument_names.push(argument_name.to_string());
        self.argument_types.push(argument_type);
        self
    }
pub fn with_arg ( mut self , argument_name : & str , argument_type : Type ) -> Self { self . argument_names . push ( argument_name . to_string ( ) ) ; self . argument_types . push ( argument_type ) ; self }
Add the argument types to a function.
Add the argument types to a function .
mut self
argument_name
&str
argument_type
Type
mut self
argument_name
&str
argument_type
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