pub trait Transform {
Show 121 methods
// Provided methods
fn transform_children<C, E>(
&mut self,
e: &mut E,
meth: impl for<'a> IteratorMaker<&'a mut Self, C>,
)
where E: HasChildren<C> { ... }
fn transform(&mut self, d: Document) -> Document { ... }
fn transform_structural_sub_element(
&mut self,
c: StructuralSubElement,
) -> impl Iterator<Item = StructuralSubElement> { ... }
fn transform_substructure(
&mut self,
c: SubStructure,
) -> impl Iterator<Item = SubStructure> { ... }
fn transform_body_element(
&mut self,
c: BodyElement,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_bibliographic_element(
&mut self,
c: BibliographicElement,
) -> impl Iterator<Item = BibliographicElement> { ... }
fn transform_text_or_inline_element(
&mut self,
c: TextOrInlineElement,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_author_info(
&mut self,
c: AuthorInfo,
) -> impl Iterator<Item = AuthorInfo> { ... }
fn transform_decoration_element(
&mut self,
c: DecorationElement,
) -> impl Iterator<Item = DecorationElement> { ... }
fn transform_sub_topic(
&mut self,
c: SubTopic,
) -> impl Iterator<Item = SubTopic> { ... }
fn transform_sub_sidebar(
&mut self,
c: SubSidebar,
) -> impl Iterator<Item = SubSidebar> { ... }
fn transform_sub_dl_item(
&mut self,
c: SubDLItem,
) -> impl Iterator<Item = SubDLItem> { ... }
fn transform_sub_field(
&mut self,
c: SubField,
) -> impl Iterator<Item = SubField> { ... }
fn transform_sub_option_list_item(
&mut self,
c: SubOptionListItem,
) -> impl Iterator<Item = SubOptionListItem> { ... }
fn transform_sub_option(
&mut self,
c: SubOption,
) -> impl Iterator<Item = SubOption> { ... }
fn transform_sub_line_block(
&mut self,
c: SubLineBlock,
) -> impl Iterator<Item = SubLineBlock> { ... }
fn transform_sub_block_quote(
&mut self,
c: SubBlockQuote,
) -> impl Iterator<Item = SubBlockQuote> { ... }
fn transform_sub_footnote(
&mut self,
c: SubFootnote,
) -> impl Iterator<Item = SubFootnote> { ... }
fn transform_sub_figure(
&mut self,
c: SubFigure,
) -> impl Iterator<Item = SubFigure> { ... }
fn transform_sub_table(
&mut self,
c: SubTable,
) -> impl Iterator<Item = SubTable> { ... }
fn transform_sub_table_group(
&mut self,
c: SubTableGroup,
) -> impl Iterator<Item = SubTableGroup> { ... }
fn transform_section(
&mut self,
e: Section,
) -> impl Iterator<Item = SubStructure> { ... }
fn transform_topic(&mut self, e: Topic) -> impl Iterator<Item = Topic> { ... }
fn transform_sidebar(
&mut self,
e: Sidebar,
) -> impl Iterator<Item = SubStructure> { ... }
fn transform_title(&mut self, e: Title) -> impl Iterator<Item = Title> { ... }
fn transform_subtitle(
&mut self,
e: Subtitle,
) -> impl Iterator<Item = SubSidebar> { ... }
fn transform_decoration(
&mut self,
e: Decoration,
) -> impl Iterator<Item = StructuralSubElement> { ... }
fn transform_docinfo(
&mut self,
e: Docinfo,
) -> impl Iterator<Item = StructuralSubElement> { ... }
fn transform_transition(
&mut self,
e: Transition,
) -> impl Iterator<Item = SubStructure> { ... }
fn transform_authors(
&mut self,
e: Authors,
) -> impl Iterator<Item = BibliographicElement> { ... }
fn transform_author(
&mut self,
e: Author,
) -> impl Iterator<Item = AuthorInfo> { ... }
fn transform_organization(
&mut self,
e: Organization,
) -> impl Iterator<Item = AuthorInfo> { ... }
fn transform_address(
&mut self,
e: Address,
) -> impl Iterator<Item = AuthorInfo> { ... }
fn transform_contact(
&mut self,
e: Contact,
) -> impl Iterator<Item = AuthorInfo> { ... }
fn transform_version(
&mut self,
e: Version,
) -> impl Iterator<Item = BibliographicElement> { ... }
fn transform_revision(
&mut self,
e: Revision,
) -> impl Iterator<Item = BibliographicElement> { ... }
fn transform_status(
&mut self,
e: Status,
) -> impl Iterator<Item = BibliographicElement> { ... }
fn transform_date(
&mut self,
e: Date,
) -> impl Iterator<Item = BibliographicElement> { ... }
fn transform_copyright(
&mut self,
e: Copyright,
) -> impl Iterator<Item = BibliographicElement> { ... }
fn transform_field(&mut self, e: Field) -> impl Iterator<Item = Field> { ... }
fn transform_header(
&mut self,
e: Header,
) -> impl Iterator<Item = DecorationElement> { ... }
fn transform_footer(
&mut self,
e: Footer,
) -> impl Iterator<Item = DecorationElement> { ... }
fn transform_paragraph(
&mut self,
e: Paragraph,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_literal_block(
&mut self,
e: LiteralBlock,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_doctest_block(
&mut self,
e: DoctestBlock,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_math_block(
&mut self,
e: MathBlock,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_rubric(
&mut self,
e: Rubric,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_substitution_definition(
&mut self,
e: SubstitutionDefinition,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_comment(
&mut self,
e: Comment,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_pending(
&mut self,
e: Pending,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_target(
&mut self,
e: Target,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_raw(&mut self, e: Raw) -> impl Iterator<Item = BodyElement> { ... }
fn transform_image(&mut self, e: Image) -> impl Iterator<Item = BodyElement> { ... }
fn transform_compound(
&mut self,
e: Compound,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_container(
&mut self,
e: Container,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_bullet_list(
&mut self,
e: BulletList,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_enumerated_list(
&mut self,
e: EnumeratedList,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_definition_list(
&mut self,
e: DefinitionList,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_field_list(
&mut self,
e: FieldList,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_option_list(
&mut self,
e: OptionList,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_line_block(
&mut self,
e: LineBlock,
) -> impl Iterator<Item = LineBlock> { ... }
fn transform_block_quote(
&mut self,
e: BlockQuote,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_admonition(
&mut self,
e: Admonition,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_attention(
&mut self,
e: Attention,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_hint(&mut self, e: Hint) -> impl Iterator<Item = BodyElement> { ... }
fn transform_note(&mut self, e: Note) -> impl Iterator<Item = BodyElement> { ... }
fn transform_caution(
&mut self,
e: Caution,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_danger(
&mut self,
e: Danger,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_error(&mut self, e: Error) -> impl Iterator<Item = BodyElement> { ... }
fn transform_important(
&mut self,
e: Important,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_tip(&mut self, e: Tip) -> impl Iterator<Item = BodyElement> { ... }
fn transform_warning(
&mut self,
e: Warning,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_footnote(
&mut self,
e: Footnote,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_citation(
&mut self,
e: Citation,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_system_message(
&mut self,
e: SystemMessage,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_figure(
&mut self,
e: Figure,
) -> impl Iterator<Item = BodyElement> { ... }
fn transform_table(&mut self, e: Table) -> impl Iterator<Item = BodyElement> { ... }
fn transform_table_group(
&mut self,
e: TableGroup,
) -> impl Iterator<Item = SubTable> { ... }
fn transform_table_head(
&mut self,
e: TableHead,
) -> impl Iterator<Item = SubTableGroup> { ... }
fn transform_table_body(
&mut self,
e: TableBody,
) -> impl Iterator<Item = SubTableGroup> { ... }
fn transform_table_row(
&mut self,
e: TableRow,
) -> impl Iterator<Item = TableRow> { ... }
fn transform_table_entry(
&mut self,
e: TableEntry,
) -> impl Iterator<Item = TableEntry> { ... }
fn transform_table_colspec(
&mut self,
e: TableColspec,
) -> impl Iterator<Item = SubTableGroup> { ... }
fn transform_list_item(
&mut self,
e: ListItem,
) -> impl Iterator<Item = ListItem> { ... }
fn transform_definition_list_item(
&mut self,
e: DefinitionListItem,
) -> impl Iterator<Item = DefinitionListItem> { ... }
fn transform_term(&mut self, e: Term) -> impl Iterator<Item = SubDLItem> { ... }
fn transform_classifier(
&mut self,
e: Classifier,
) -> impl Iterator<Item = SubDLItem> { ... }
fn transform_definition(
&mut self,
e: Definition,
) -> impl Iterator<Item = SubDLItem> { ... }
fn transform_field_name(
&mut self,
e: FieldName,
) -> impl Iterator<Item = SubField> { ... }
fn transform_field_body(
&mut self,
e: FieldBody,
) -> impl Iterator<Item = SubField> { ... }
fn transform_option_list_item(
&mut self,
e: OptionListItem,
) -> impl Iterator<Item = OptionListItem> { ... }
fn transform_option_group(
&mut self,
e: OptionGroup,
) -> impl Iterator<Item = SubOptionListItem> { ... }
fn transform_description(
&mut self,
e: Description,
) -> impl Iterator<Item = SubOptionListItem> { ... }
fn transform_option(&mut self, e: Option_) -> impl Iterator<Item = Option_> { ... }
fn transform_option_string(
&mut self,
e: OptionString,
) -> impl Iterator<Item = SubOption> { ... }
fn transform_option_argument(
&mut self,
e: OptionArgument,
) -> impl Iterator<Item = SubOption> { ... }
fn transform_line(&mut self, e: Line) -> impl Iterator<Item = SubLineBlock> { ... }
fn transform_attribution(
&mut self,
e: Attribution,
) -> impl Iterator<Item = SubBlockQuote> { ... }
fn transform_label(&mut self, e: Label) -> impl Iterator<Item = SubFootnote> { ... }
fn transform_caption(
&mut self,
e: Caption,
) -> impl Iterator<Item = SubFigure> { ... }
fn transform_legend(&mut self, e: Legend) -> impl Iterator<Item = SubFigure> { ... }
fn transform_string(&mut self, e: String) -> impl Iterator<Item = String> { ... }
fn transform_emphasis(
&mut self,
e: Emphasis,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_literal(
&mut self,
e: Literal,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_reference(
&mut self,
e: Reference,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_strong(
&mut self,
e: Strong,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_footnote_reference(
&mut self,
e: FootnoteReference,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_citation_reference(
&mut self,
e: CitationReference,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_substitution_reference(
&mut self,
e: SubstitutionReference,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_title_reference(
&mut self,
e: TitleReference,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_abbreviation(
&mut self,
e: Abbreviation,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_acronym(
&mut self,
e: Acronym,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_superscript(
&mut self,
e: Superscript,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_subscript(
&mut self,
e: Subscript,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_inline(
&mut self,
e: Inline,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_problematic(
&mut self,
e: Problematic,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_generated(
&mut self,
e: Generated,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_math(
&mut self,
e: Math,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_target_inline(
&mut self,
e: TargetInline,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_raw_inline(
&mut self,
e: RawInline,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
fn transform_image_inline(
&mut self,
e: ImageInline,
) -> impl Iterator<Item = TextOrInlineElement> { ... }
}
Expand description
Transform a document tree.
Override individual methods to modify the document tree. By default, every method transforms an element’s children (if applicable) and then returns the element.
Provided Methods§
Sourcefn transform_children<C, E>(
&mut self,
e: &mut E,
meth: impl for<'a> IteratorMaker<&'a mut Self, C>,
)where
E: HasChildren<C>,
fn transform_children<C, E>(
&mut self,
e: &mut E,
meth: impl for<'a> IteratorMaker<&'a mut Self, C>,
)where
E: HasChildren<C>,
Transform children of an element.
Can be used in other transform_<element>
methods to recurse, e.g.:
use document_tree::elements as e;
use document_tree::element_categories as c;
use rst_parser::transforms::Transform;
struct MyPass;
impl Transform for MyPass {
fn transform_header(&mut self, mut e: e::Header) -> impl Iterator<Item = c::DecorationElement> {
self.transform_children(&mut e, Self::transform_body_element);
std::iter::once(e.into())
}
}
fn transform_structural_sub_element( &mut self, c: StructuralSubElement, ) -> impl Iterator<Item = StructuralSubElement>
fn transform_substructure( &mut self, c: SubStructure, ) -> impl Iterator<Item = SubStructure>
fn transform_body_element( &mut self, c: BodyElement, ) -> impl Iterator<Item = BodyElement>
fn transform_bibliographic_element( &mut self, c: BibliographicElement, ) -> impl Iterator<Item = BibliographicElement>
fn transform_text_or_inline_element( &mut self, c: TextOrInlineElement, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_decoration_element( &mut self, c: DecorationElement, ) -> impl Iterator<Item = DecorationElement>
fn transform_sub_topic(&mut self, c: SubTopic) -> impl Iterator<Item = SubTopic>
fn transform_sub_dl_item( &mut self, c: SubDLItem, ) -> impl Iterator<Item = SubDLItem>
fn transform_sub_field(&mut self, c: SubField) -> impl Iterator<Item = SubField>
fn transform_sub_option_list_item( &mut self, c: SubOptionListItem, ) -> impl Iterator<Item = SubOptionListItem>
fn transform_sub_option( &mut self, c: SubOption, ) -> impl Iterator<Item = SubOption>
fn transform_sub_line_block( &mut self, c: SubLineBlock, ) -> impl Iterator<Item = SubLineBlock>
fn transform_sub_block_quote( &mut self, c: SubBlockQuote, ) -> impl Iterator<Item = SubBlockQuote>
fn transform_sub_footnote( &mut self, c: SubFootnote, ) -> impl Iterator<Item = SubFootnote>
fn transform_sub_figure( &mut self, c: SubFigure, ) -> impl Iterator<Item = SubFigure>
fn transform_sub_table(&mut self, c: SubTable) -> impl Iterator<Item = SubTable>
fn transform_sub_table_group( &mut self, c: SubTableGroup, ) -> impl Iterator<Item = SubTableGroup>
fn transform_section( &mut self, e: Section, ) -> impl Iterator<Item = SubStructure>
fn transform_topic(&mut self, e: Topic) -> impl Iterator<Item = Topic>
fn transform_title(&mut self, e: Title) -> impl Iterator<Item = Title>
fn transform_subtitle( &mut self, e: Subtitle, ) -> impl Iterator<Item = SubSidebar>
fn transform_decoration( &mut self, e: Decoration, ) -> impl Iterator<Item = StructuralSubElement>
fn transform_docinfo( &mut self, e: Docinfo, ) -> impl Iterator<Item = StructuralSubElement>
fn transform_transition( &mut self, e: Transition, ) -> impl Iterator<Item = SubStructure>
fn transform_organization( &mut self, e: Organization, ) -> impl Iterator<Item = AuthorInfo>
fn transform_address(&mut self, e: Address) -> impl Iterator<Item = AuthorInfo>
fn transform_contact(&mut self, e: Contact) -> impl Iterator<Item = AuthorInfo>
fn transform_version( &mut self, e: Version, ) -> impl Iterator<Item = BibliographicElement>
fn transform_revision( &mut self, e: Revision, ) -> impl Iterator<Item = BibliographicElement>
fn transform_status( &mut self, e: Status, ) -> impl Iterator<Item = BibliographicElement>
fn transform_date( &mut self, e: Date, ) -> impl Iterator<Item = BibliographicElement>
fn transform_copyright( &mut self, e: Copyright, ) -> impl Iterator<Item = BibliographicElement>
fn transform_field(&mut self, e: Field) -> impl Iterator<Item = Field>
fn transform_header( &mut self, e: Header, ) -> impl Iterator<Item = DecorationElement>
fn transform_paragraph( &mut self, e: Paragraph, ) -> impl Iterator<Item = BodyElement>
fn transform_literal_block( &mut self, e: LiteralBlock, ) -> impl Iterator<Item = BodyElement>
fn transform_doctest_block( &mut self, e: DoctestBlock, ) -> impl Iterator<Item = BodyElement>
fn transform_math_block( &mut self, e: MathBlock, ) -> impl Iterator<Item = BodyElement>
fn transform_rubric(&mut self, e: Rubric) -> impl Iterator<Item = BodyElement>
fn transform_substitution_definition( &mut self, e: SubstitutionDefinition, ) -> impl Iterator<Item = BodyElement>
fn transform_comment(&mut self, e: Comment) -> impl Iterator<Item = BodyElement>
fn transform_pending(&mut self, e: Pending) -> impl Iterator<Item = BodyElement>
fn transform_target(&mut self, e: Target) -> impl Iterator<Item = BodyElement>
fn transform_raw(&mut self, e: Raw) -> impl Iterator<Item = BodyElement>
fn transform_image(&mut self, e: Image) -> impl Iterator<Item = BodyElement>
fn transform_compound( &mut self, e: Compound, ) -> impl Iterator<Item = BodyElement>
fn transform_container( &mut self, e: Container, ) -> impl Iterator<Item = BodyElement>
fn transform_bullet_list( &mut self, e: BulletList, ) -> impl Iterator<Item = BodyElement>
fn transform_enumerated_list( &mut self, e: EnumeratedList, ) -> impl Iterator<Item = BodyElement>
fn transform_definition_list( &mut self, e: DefinitionList, ) -> impl Iterator<Item = BodyElement>
fn transform_field_list( &mut self, e: FieldList, ) -> impl Iterator<Item = BodyElement>
fn transform_option_list( &mut self, e: OptionList, ) -> impl Iterator<Item = BodyElement>
fn transform_line_block( &mut self, e: LineBlock, ) -> impl Iterator<Item = LineBlock>
fn transform_block_quote( &mut self, e: BlockQuote, ) -> impl Iterator<Item = BodyElement>
fn transform_admonition( &mut self, e: Admonition, ) -> impl Iterator<Item = BodyElement>
fn transform_attention( &mut self, e: Attention, ) -> impl Iterator<Item = BodyElement>
fn transform_hint(&mut self, e: Hint) -> impl Iterator<Item = BodyElement>
fn transform_note(&mut self, e: Note) -> impl Iterator<Item = BodyElement>
fn transform_caution(&mut self, e: Caution) -> impl Iterator<Item = BodyElement>
fn transform_danger(&mut self, e: Danger) -> impl Iterator<Item = BodyElement>
fn transform_error(&mut self, e: Error) -> impl Iterator<Item = BodyElement>
fn transform_important( &mut self, e: Important, ) -> impl Iterator<Item = BodyElement>
fn transform_tip(&mut self, e: Tip) -> impl Iterator<Item = BodyElement>
fn transform_warning(&mut self, e: Warning) -> impl Iterator<Item = BodyElement>
fn transform_footnote( &mut self, e: Footnote, ) -> impl Iterator<Item = BodyElement>
fn transform_citation( &mut self, e: Citation, ) -> impl Iterator<Item = BodyElement>
fn transform_system_message( &mut self, e: SystemMessage, ) -> impl Iterator<Item = BodyElement>
fn transform_figure(&mut self, e: Figure) -> impl Iterator<Item = BodyElement>
fn transform_table(&mut self, e: Table) -> impl Iterator<Item = BodyElement>
fn transform_table_group( &mut self, e: TableGroup, ) -> impl Iterator<Item = SubTable>
fn transform_table_head( &mut self, e: TableHead, ) -> impl Iterator<Item = SubTableGroup>
fn transform_table_body( &mut self, e: TableBody, ) -> impl Iterator<Item = SubTableGroup>
fn transform_table_row(&mut self, e: TableRow) -> impl Iterator<Item = TableRow>
fn transform_table_entry( &mut self, e: TableEntry, ) -> impl Iterator<Item = TableEntry>
fn transform_table_colspec( &mut self, e: TableColspec, ) -> impl Iterator<Item = SubTableGroup>
fn transform_list_item(&mut self, e: ListItem) -> impl Iterator<Item = ListItem>
fn transform_definition_list_item( &mut self, e: DefinitionListItem, ) -> impl Iterator<Item = DefinitionListItem>
fn transform_term(&mut self, e: Term) -> impl Iterator<Item = SubDLItem>
fn transform_classifier( &mut self, e: Classifier, ) -> impl Iterator<Item = SubDLItem>
fn transform_definition( &mut self, e: Definition, ) -> impl Iterator<Item = SubDLItem>
fn transform_field_name( &mut self, e: FieldName, ) -> impl Iterator<Item = SubField>
fn transform_field_body( &mut self, e: FieldBody, ) -> impl Iterator<Item = SubField>
fn transform_option_list_item( &mut self, e: OptionListItem, ) -> impl Iterator<Item = OptionListItem>
fn transform_option_group( &mut self, e: OptionGroup, ) -> impl Iterator<Item = SubOptionListItem>
fn transform_description( &mut self, e: Description, ) -> impl Iterator<Item = SubOptionListItem>
fn transform_option(&mut self, e: Option_) -> impl Iterator<Item = Option_>
fn transform_option_string( &mut self, e: OptionString, ) -> impl Iterator<Item = SubOption>
fn transform_option_argument( &mut self, e: OptionArgument, ) -> impl Iterator<Item = SubOption>
fn transform_line(&mut self, e: Line) -> impl Iterator<Item = SubLineBlock>
fn transform_attribution( &mut self, e: Attribution, ) -> impl Iterator<Item = SubBlockQuote>
fn transform_label(&mut self, e: Label) -> impl Iterator<Item = SubFootnote>
fn transform_caption(&mut self, e: Caption) -> impl Iterator<Item = SubFigure>
fn transform_legend(&mut self, e: Legend) -> impl Iterator<Item = SubFigure>
fn transform_string(&mut self, e: String) -> impl Iterator<Item = String>
fn transform_emphasis( &mut self, e: Emphasis, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_literal( &mut self, e: Literal, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_reference( &mut self, e: Reference, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_strong( &mut self, e: Strong, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_footnote_reference( &mut self, e: FootnoteReference, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_citation_reference( &mut self, e: CitationReference, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_substitution_reference( &mut self, e: SubstitutionReference, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_title_reference( &mut self, e: TitleReference, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_abbreviation( &mut self, e: Abbreviation, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_acronym( &mut self, e: Acronym, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_superscript( &mut self, e: Superscript, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_subscript( &mut self, e: Subscript, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_inline( &mut self, e: Inline, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_problematic( &mut self, e: Problematic, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_generated( &mut self, e: Generated, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_math( &mut self, e: Math, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_target_inline( &mut self, e: TargetInline, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_raw_inline( &mut self, e: RawInline, ) -> impl Iterator<Item = TextOrInlineElement>
fn transform_image_inline( &mut self, e: ImageInline, ) -> impl Iterator<Item = TextOrInlineElement>
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.