This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub struct BookInfo { | |
pub titles: Vec<String>, | |
pub authors: Vec<String>, | |
} | |
fn populate_book_info(file_name: &str) -> BookInfo { | |
//binfo may have entries in titles or authors | |
//depending on regex results | |
let mut binfo = BookInfo::from(file_name); |