Enum mediawiki_parser::Element[][src]

pub enum Element {
    Document(Document),
    Heading(Heading),
    Text(Text),
    Formatted(Formatted),
    Paragraph(Paragraph),
    Template(Template),
    TemplateArgument(TemplateArgument),
    InternalReference(InternalReference),
    ExternalReference(ExternalReference),
    ListItem(ListItem),
    List(List),
    Table(Table),
    TableRow(TableRow),
    TableCell(TableCell),
    Comment(Comment),
    HtmlTag(HtmlTag),
    Gallery(Gallery),
    Error(Error),
}

Element types used in the abstract syntax tree (AST).

Each element must keep track of its position in the original input document. After parsing, the document tree can be serialized by serde.

Variants

Methods

impl Element
[src]

returns the source code position of an element.

returns a mutable reference the source code position of an element.

returns the variant name of an element.

Trait Implementations

impl Debug for Element
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Element
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Element
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Element

impl Sync for Element