pub struct TextTemplate<'s> {
    pub text: Text<'s>,
    /* private fields */
}
Expand description

a markdown template allowing you to replace some placeholders with given values, or to expand some sub-templates with repetitions (useful with lists, table rows, etc.)

Fields

text: Text<'s>

Implementations

return a new expander for the template

Trait Implementations

Formats the value using the given formatter. Read more

Build a new expander for the template. The expander stores the additions done with set, set_md, set_lines or in the sub expanders.

build a template from a markdown text with placeholders like ${some-name} and sub-templates

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.