pub struct Project {
pub project_dir: PathBuf,
pub settings: Settings,
pub book: Book,
/* private fields */
}
Fields§
§project_dir: PathBuf
§settings: Settings
§book: Book
Implementations§
source§impl Project
impl Project
pub fn new<P: AsRef<Path>>(app: &App, cwd: P) -> Result<Project>
pub fn init<P: AsRef<Path>>(project_dir: P) -> Result<()>
pub fn book_section(&self) -> &Metadata
pub fn songs(&self) -> &[Song]
pub fn songs_sorted(&self) -> &[SongRef]
pub fn render(&self, app: &App) -> Result<()>
pub fn input_paths(&self) -> &Vec<PathBuf>
pub fn output_paths(&self) -> impl Iterator<Item = &Path>
pub fn watch_paths(&self) -> impl Iterator<Item = &Path>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more