pub enum Block {
Verse(Verse),
BulletList(BulletList),
HorizontalLine,
Pre {
text: BStr,
},
HtmlBlock(Inlines),
}
Variants§
Verse(Verse)
BulletList(BulletList)
HorizontalLine
Pre
HtmlBlock(Inlines)
An HTML block contains inlines which can only be Text
, HtmlTag
, or Break
.
Implementations§
source§impl Block
impl Block
pub fn chorus_num(&self) -> Option<u32>
sourcepub fn remove_chorus_num(&mut self)
pub fn remove_chorus_num(&mut self)
Used to remove chorus numbers in case there’s one chorus.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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