Enum chordpro::song::Section [−][src]
Expand description
A song section (chorus, verse or a comment)
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Chorus(Paragraph)
The chorus
Tuple Fields of Chorus
0: Paragraph
Verse(Paragraph)
A verse
Tuple Fields of Verse
0: Paragraph
Comment(Line)
Chordpro comment. Only contains one Line.
Tuple Fields of Comment
0: Line
Implementations
pub fn iter(&self) -> SectionIterator<'_>ⓘNotable traits for SectionIterator<'a>impl<'a> Iterator for SectionIterator<'a> type Item = &'a Line;
Notable traits for SectionIterator<'a>
impl<'a> Iterator for SectionIterator<'a> type Item = &'a Line;
pub fn iter_mut(&mut self) -> SectionMutIterator<'_>ⓘNotable traits for SectionMutIterator<'a>impl<'a> Iterator for SectionMutIterator<'a> type Item = &'a mut Line;
Notable traits for SectionMutIterator<'a>
impl<'a> Iterator for SectionMutIterator<'a> type Item = &'a mut Line;
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Section
impl UnwindSafe for Section
Blanket Implementations
Mutably borrows from an owned value. Read more