fn remove_bill_menu(bills: &mut Bills) {
    for bill in bills.get_all() {
        println!("{:?}", bill);
    }
    println!("Enter bill name to remove:");
    let name = match get_input() {
        Some(name) => name,
        None => return,
    };
    if bills.remove(&name) {
        println!("removed");
    } else {
        println!("bill not found");
    }
}
/// Process for removing an existing bill. Includes accepting user
/// input and aborting if the user does not enter any data.
Process for removing an existing bill. Includes accepting user
input and aborting if the user does not enter any data.
Process for removing an existing bill . Includes accepting user input and aborting if the user does not enter any data .
fn remove_bill_menu(bills: &mut Bills) {
    for bill in bills.get_all() {
        println!("{:?}", bill);
    }
    println!("Enter bill name to remove:");
    let name = match get_input() {
        Some(name) => name,
        None => return,
    };
    if bills.remove(&name) {
        println!("removed");
    } else {
        println!("bill not found");
    }
}
fn remove_bill_menu ( bills : & mut Bills ) { for bill in bills . get_all ( ) { println ! ( " " bill ) ; } println ! ( " " ) ; let name = match get_input ( ) { Some ( name ) => name , None => return , } ; if bills . remove ( & name ) { println ! ( " " ) ; } else { println ! ( " " ) ; } }
Process for removing an existing bill.
Process for removing an existing bill .
bills
&mut Bills