Function fb2::parse

source ·
pub fn parse<T: Read>(content: T) -> Result<FictionBook, Error>
Examples found in repository?
examples/parse_sample.rs (line 7)
4
5
6
7
8
9
fn main() {
    let file = File::open("examples/books/churchill_trial.fb2").unwrap();
    let reader = BufReader::new(file);
    let book = fb2::parse(reader).unwrap();
    println!("{:#?}", book);
}