Struct wikitext_parser::Section
source · pub struct Section {
pub headline: Headline,
pub text: Text,
pub subsections: Vec<Section>,
}
Expand description
A section of wikitext.
Fields§
§headline: Headline
The headline of the section.
text: Text
The text 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 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§
source§impl PartialEq<Section> for Section
impl PartialEq<Section> for Section
impl Eq for Section
impl StructuralEq for Section
impl StructuralPartialEq for Section
Auto Trait Implementations§
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