document_tree::elements

Trait Element

Source
pub trait Element {
    // Required methods
    fn ids(&self) -> &Vec<ID>;
    fn ids_mut(&mut self) -> &mut Vec<ID>;
    fn names(&self) -> &Vec<NameToken>;
    fn names_mut(&mut self) -> &mut Vec<NameToken>;
    fn source(&self) -> &Option<PathBuf>;
    fn source_mut(&mut self) -> &mut Option<PathBuf>;
    fn classes(&self) -> &Vec<String>;
    fn classes_mut(&mut self) -> &mut Vec<String>;
}

Required Methods§

Source

fn ids(&self) -> &Vec<ID>

A list containing one or more unique identifier keys

Source

fn ids_mut(&mut self) -> &mut Vec<ID>

Source

fn names(&self) -> &Vec<NameToken>

a list containing the names of an element, typically originating from the element’s title or content. Each name in names must be unique; if there are name conflicts (two or more elements want to the same name), the contents will be transferred to the dupnames attribute on the duplicate elements. An element may have at most one of the names or dupnames attributes, but not both.

Source

fn names_mut(&mut self) -> &mut Vec<NameToken>

Source

fn source(&self) -> &Option<PathBuf>

Source

fn source_mut(&mut self) -> &mut Option<PathBuf>

Source

fn classes(&self) -> &Vec<String>

Source

fn classes_mut(&mut self) -> &mut Vec<String>

Implementors§

Source§

impl Element for Abbreviation

Source§

impl Element for Acronym

Source§

impl Element for Address

Source§

impl Element for Admonition

Source§

impl Element for Attention

Source§

impl Element for Attribution

Source§

impl Element for Author

Source§

impl Element for Authors

Source§

impl Element for BlockQuote

Source§

impl Element for BulletList

Source§

impl Element for Caption

Source§

impl Element for Caution

Source§

impl Element for Citation

Source§

impl Element for CitationReference

Source§

impl Element for Classifier

Source§

impl Element for Comment

Source§

impl Element for Compound

Source§

impl Element for Contact

Source§

impl Element for Container

Source§

impl Element for Danger

Source§

impl Element for Date

Source§

impl Element for Decoration

Source§

impl Element for Definition

Source§

impl Element for DefinitionList

Source§

impl Element for DefinitionListItem

Source§

impl Element for Description

Source§

impl Element for Docinfo

Source§

impl Element for DoctestBlock

Source§

impl Element for Emphasis

Source§

impl Element for EnumeratedList

Source§

impl Element for Error

Source§

impl Element for Field

Source§

impl Element for FieldBody

Source§

impl Element for FieldList

Source§

impl Element for FieldName

Source§

impl Element for Figure

Source§

impl Element for Footnote

Source§

impl Element for FootnoteReference

Source§

impl Element for Generated

Source§

impl Element for Header

Source§

impl Element for Hint

Source§

impl Element for Image

Source§

impl Element for ImageInline

Source§

impl Element for Important

Source§

impl Element for Inline

Source§

impl Element for Label

Source§

impl Element for Legend

Source§

impl Element for Line

Source§

impl Element for LineBlock

Source§

impl Element for ListItem

Source§

impl Element for Literal

Source§

impl Element for LiteralBlock

Source§

impl Element for Math

Source§

impl Element for MathBlock

Source§

impl Element for Note

Source§

impl Element for OptionArgument

Source§

impl Element for OptionGroup

Source§

impl Element for OptionList

Source§

impl Element for OptionListItem

Source§

impl Element for OptionString

Source§

impl Element for Option_

Source§

impl Element for Organization

Source§

impl Element for Paragraph

Source§

impl Element for Pending

Source§

impl Element for Problematic

Source§

impl Element for Raw

Source§

impl Element for RawInline

Source§

impl Element for Reference

Source§

impl Element for Revision

Source§

impl Element for Rubric

Source§

impl Element for Section

Source§

impl Element for Sidebar

Source§

impl Element for Status

Source§

impl Element for Strong

Source§

impl Element for Subscript

Source§

impl Element for SubstitutionDefinition

Source§

impl Element for SubstitutionReference

Source§

impl Element for Subtitle

Source§

impl Element for Superscript

Source§

impl Element for SystemMessage

Source§

impl Element for Table

Source§

impl Element for TableBody

Source§

impl Element for TableColspec

Source§

impl Element for TableEntry

Source§

impl Element for TableGroup

Source§

impl Element for TableHead

Source§

impl Element for TableRow

Source§

impl Element for Target

Source§

impl Element for TargetInline

Source§

impl Element for Term

Source§

impl Element for Tip

Source§

impl Element for Title

Source§

impl Element for TitleReference

Source§

impl Element for Topic

Source§

impl Element for Transition

Source§

impl Element for Version

Source§

impl Element for Warning