document_tree::element_categories

Trait HasChildren

Source
pub trait HasChildren<C> {
    // Required methods
    fn with_children(children: Vec<C>) -> Self;
    fn children(&self) -> &Vec<C>;
    fn children_mut(&mut self) -> &mut Vec<C>;

    // Provided methods
    fn append_child<R: Into<C>>(&mut self, child: R) { ... }
    fn append_children<R: Into<C> + Clone>(&mut self, more: &[R]) { ... }
}

Required Methods§

Source

fn with_children(children: Vec<C>) -> Self

Source

fn children(&self) -> &Vec<C>

Source

fn children_mut(&mut self) -> &mut Vec<C>

Provided Methods§

Source

fn append_child<R: Into<C>>(&mut self, child: R)

Source

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl HasChildren<AuthorInfo> for Authors

Source§

impl HasChildren<BibliographicElement> for Docinfo

Source§

impl HasChildren<BodyElement> for Attention

Source§

impl HasChildren<BodyElement> for Caution

Source§

impl HasChildren<BodyElement> for Compound

Source§

impl HasChildren<BodyElement> for Container

Source§

impl HasChildren<BodyElement> for Danger

Source§

impl HasChildren<BodyElement> for Definition

Source§

impl HasChildren<BodyElement> for Description

Source§

impl HasChildren<BodyElement> for Error

Source§

impl HasChildren<BodyElement> for FieldBody

Source§

impl HasChildren<BodyElement> for Header

Source§

impl HasChildren<BodyElement> for Hint

Source§

impl HasChildren<BodyElement> for Important

Source§

impl HasChildren<BodyElement> for Legend

Source§

impl HasChildren<BodyElement> for ListItem

Source§

impl HasChildren<BodyElement> for Note

Source§

impl HasChildren<BodyElement> for SystemMessage

Source§

impl HasChildren<BodyElement> for TableEntry

Source§

impl HasChildren<BodyElement> for Tip

Source§

impl HasChildren<BodyElement> for Warning

Source§

impl HasChildren<DecorationElement> for Decoration

Source§

impl HasChildren<StructuralSubElement> for Document

Source§

impl HasChildren<StructuralSubElement> for Section

Source§

impl HasChildren<SubBlockQuote> for BlockQuote

Source§

impl HasChildren<SubDLItem> for DefinitionListItem

Source§

impl HasChildren<SubField> for Field

Source§

impl HasChildren<SubFigure> for Figure

Source§

impl HasChildren<SubFootnote> for Citation

Source§

impl HasChildren<SubFootnote> for Footnote

Source§

impl HasChildren<SubLineBlock> for LineBlock

Source§

impl HasChildren<SubOption> for Option_

Source§

impl HasChildren<SubOptionListItem> for OptionListItem

Source§

impl HasChildren<SubSidebar> for Sidebar

Source§

impl HasChildren<SubTable> for Table

Source§

impl HasChildren<SubTableGroup> for TableGroup

Source§

impl HasChildren<SubTopic> for Admonition

Source§

impl HasChildren<SubTopic> for Topic

Source§

impl HasChildren<TextOrInlineElement> for Abbreviation

Source§

impl HasChildren<TextOrInlineElement> for Acronym

Source§

impl HasChildren<TextOrInlineElement> for Address

Source§

impl HasChildren<TextOrInlineElement> for Attribution

Source§

impl HasChildren<TextOrInlineElement> for Author

Source§

impl HasChildren<TextOrInlineElement> for Caption

Source§

impl HasChildren<TextOrInlineElement> for CitationReference

Source§

impl HasChildren<TextOrInlineElement> for Classifier

Source§

impl HasChildren<TextOrInlineElement> for Comment

Source§

impl HasChildren<TextOrInlineElement> for Contact

Source§

impl HasChildren<TextOrInlineElement> for Date

Source§

impl HasChildren<TextOrInlineElement> for DoctestBlock

Source§

impl HasChildren<TextOrInlineElement> for Emphasis

Source§

impl HasChildren<TextOrInlineElement> for FieldName

Source§

impl HasChildren<TextOrInlineElement> for FootnoteReference

Source§

impl HasChildren<TextOrInlineElement> for Generated

Source§

impl HasChildren<TextOrInlineElement> for Inline

Source§

impl HasChildren<TextOrInlineElement> for Label

Source§

impl HasChildren<TextOrInlineElement> for Line

Source§

impl HasChildren<TextOrInlineElement> for LiteralBlock

Source§

impl HasChildren<TextOrInlineElement> for Organization

Source§

impl HasChildren<TextOrInlineElement> for Paragraph

Source§

impl HasChildren<TextOrInlineElement> for Problematic

Source§

impl HasChildren<TextOrInlineElement> for Reference

Source§

impl HasChildren<TextOrInlineElement> for Revision

Source§

impl HasChildren<TextOrInlineElement> for Rubric

Source§

impl HasChildren<TextOrInlineElement> for Status

Source§

impl HasChildren<TextOrInlineElement> for Strong

Source§

impl HasChildren<TextOrInlineElement> for Subscript

Source§

impl HasChildren<TextOrInlineElement> for SubstitutionDefinition

Source§

impl HasChildren<TextOrInlineElement> for SubstitutionReference

Source§

impl HasChildren<TextOrInlineElement> for Subtitle

Source§

impl HasChildren<TextOrInlineElement> for Superscript

Source§

impl HasChildren<TextOrInlineElement> for Term

Source§

impl HasChildren<TextOrInlineElement> for Title

Source§

impl HasChildren<TextOrInlineElement> for TitleReference

Source§

impl HasChildren<TextOrInlineElement> for Version

Source§

impl HasChildren<DefinitionListItem> for DefinitionList

Source§

impl HasChildren<Field> for FieldList

Source§

impl HasChildren<ListItem> for BulletList

Source§

impl HasChildren<ListItem> for EnumeratedList

Source§

impl HasChildren<OptionListItem> for OptionList

Source§

impl HasChildren<Option_> for OptionGroup

Source§

impl HasChildren<TableEntry> for TableRow

Source§

impl HasChildren<TableRow> for TableBody

Source§

impl HasChildren<TableRow> for TableHead

Source§

impl HasChildren<String> for Literal

Source§

impl HasChildren<String> for Math

Source§

impl HasChildren<String> for MathBlock

Source§

impl HasChildren<String> for OptionArgument

Source§

impl HasChildren<String> for OptionString

Source§

impl HasChildren<String> for Raw

Source§

impl HasChildren<String> for RawInline

Source§

impl HasChildren<String> for TargetInline