pub struct Book {
pub songs: Vec<Song>,
pub songs_sorted: Vec<SongRef>,
pub notation: Notation,
}
Fields§
§songs: Vec<Song>
§songs_sorted: Vec<SongRef>
§notation: Notation
Implementations§
source§impl Book
impl Book
pub fn new(settings: &Settings) -> Book
pub fn add_songs(&mut self, songs: Vec<Song>)
sourcepub fn postprocess(
&mut self,
output_dir: &Path,
img_cache: &ImgCache
) -> Result<()>
pub fn postprocess( &mut self, output_dir: &Path, img_cache: &ImgCache ) -> Result<()>
Book-level postprocessing.
Steps taken:
- Generation of the songs_sorted vec,
- Resolving of image elements (checking path, reading image dimensions).
pub fn iter_images(&self) -> impl Iterator<Item = &Image>
pub fn iter_images_mut(&mut self) -> impl Iterator<Item = &mut Image>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Book
impl Send for Book
impl Sync for Book
impl Unpin for Book
impl UnwindSafe for Book
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