pub struct Section {
pub headline: Headline,
pub paragraphs: Vec<Paragraph>,
pub subsections: Vec<Section>,
}
Expand description
A section of wikitext.
Fields§
§headline: Headline
The headline of the section.
paragraphs: Vec<Paragraph>
The paragraphs of the section.
subsections: Vec<Section>
The subsections of the section.
Implementations§
Source§impl Section
impl Section
Sourcepub fn print_headlines(&self)
pub fn print_headlines(&self)
Print the headlines of the text.
Sourcepub fn list_headlines(&self, result: &mut Vec<Headline>)
pub fn list_headlines(&self, result: &mut Vec<Headline>)
List the headlines of the text.
Sourcepub fn iter_text_pieces(&self) -> impl Iterator<Item = &TextPiece>
pub fn iter_text_pieces(&self) -> impl Iterator<Item = &TextPiece>
Iterate over all text pieces in the wikitext.
Sourcepub fn list_double_brace_expressions(&self, result: &mut Vec<TextPiece>)
pub fn list_double_brace_expressions(&self, result: &mut Vec<TextPiece>)
List the double brace expressions of the text.
Sourcepub fn list_plain_text(&self, result: &mut Vec<TextPiece>)
pub fn list_plain_text(&self, result: &mut Vec<TextPiece>)
List the plain parts of the text.
Trait Implementations§
impl Eq for Section
impl StructuralPartialEq for Section
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
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