fn add_bill_menu(bills: &mut Bills) {
    println!("Bill name:");
    let name = match get_input() {
        Some(input) => input,
        None => return,
    };
    let amount = match get_bill_amount() {
        Some(amount) => amount,
        None => return,
    };
    let bill = Bill { name, amount };
    bills.add(bill);
    println!("Bill added");
}
/// Process for adding a new bill. Includes accepting user input
/// and aborting if the user does not enter any data.
Process for adding a new bill. Includes accepting user input
and aborting if the user does not enter any data.
Process for adding a new bill . Includes accepting user input and aborting if the user does not enter any data .
fn add_bill_menu(bills: &mut Bills) {
    println!("Bill name:");
    let name = match get_input() {
        Some(input) => input,
        None => return,
    };
    let amount = match get_bill_amount() {
        Some(amount) => amount,
        None => return,
    };
    let bill = Bill { name, amount };
    bills.add(bill);
    println!("Bill added");
}
fn add_bill_menu ( bills : & mut Bills ) { println ! ( " " ) ; let name = match get_input ( ) { Some ( input ) => input , None => return , } ; let amount = match get_bill_amount ( ) { Some ( amount ) => amount , None => return , } ; let bill = Bill { name , amount } ; bills . add ( bill ) ; println ! ( " " ) ; }
Process for adding a new bill.
Process for adding a new bill .
bills
&mut Bills