pub struct Wikitext {
pub root_section: Section,
}
Expand description
The root of a wikitext document.
Fields§
§root_section: Section
The root of the section tree of the page.
Implementations§
Source§impl Wikitext
impl Wikitext
Sourcepub fn print_headlines(&self)
pub fn print_headlines(&self)
Print the headlines of the text.
Sourcepub fn list_headlines(&self) -> Vec<Headline>
pub fn list_headlines(&self) -> Vec<Headline>
List the headlines of the text.
Sourcepub fn list_double_brace_expressions(&self) -> Vec<TextPiece>
pub fn list_double_brace_expressions(&self) -> Vec<TextPiece>
List the double brace expressions of the text.
Sourcepub fn list_plain_text(&self) -> Vec<TextPiece>
pub fn list_plain_text(&self) -> Vec<TextPiece>
List the plain parts of the text.
Trait Implementations§
impl Eq for Wikitext
impl StructuralPartialEq for Wikitext
Auto Trait Implementations§
impl Freeze for Wikitext
impl RefUnwindSafe for Wikitext
impl Send for Wikitext
impl Sync for Wikitext
impl Unpin for Wikitext
impl UnwindSafe for Wikitext
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