mdBook/src/book/bookitem.rs

22 lines
303 B
Rust
Raw Normal View History

2015-07-17 01:26:16 +08:00
use std::path::PathBuf;
pub struct BookItem {
name: String,
path: PathBuf,
sub_items: Vec<BookItem>,
}
impl BookItem {
fn new(name: String, path: PathBuf) -> Self {
BookItem {
name: name,
path: path,
sub_items: vec![],
}
}
}