Enum latex::Element [] [src]

pub enum Element {
    Para(Paragraph),
    Section(Section),
    TableOfContents,
    TitlePage,
    ClearPage,
    UserDefined(String),
    // some variants omitted
}

The major elements in a Document.

Variants

A bare paragraph.

Note

You probably don't want to add a paragraph directly to your document, instead add it to a Section so that if you are walking the AST later on things make sense.

A section.

The table of contents.

The title page.

Clear the page.

Any other element.

Trait Implementations

impl Clone for Element
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Element
[src]

Formats the value using the given formatter.

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 From<Section> for Element
[src]

Performs the conversion.

impl Renderable for Element
[src]

Render the item.