pub struct Song {
pub title: BStr,
pub subtitles: Box<[BStr]>,
pub blocks: Vec<Block>,
pub notation: Notation,
}
Fields§
§title: BStr
§subtitles: Box<[BStr]>
§blocks: Vec<Block>
§notation: Notation
Implementations§
source§impl Song
impl Song
sourcepub fn postprocess(&mut self)
pub fn postprocess(&mut self)
AST postprocessing.
This entails removing empty paragraphs and verses which linger when transposition extensions are applied & removed.
Distinct from Book::postprocess()
, this is done by Parser
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Song
impl Send for Song
impl Sync for Song
impl Unpin for Song
impl UnwindSafe for Song
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