Enum fv_template::rt::Part[][src]

pub enum Part<'a> {
    Text(&'a str),
    Hole(&'a str),
}
Expand description

A fragment of a template.

A set of Parts can be concatenated to form a user-facing representation of a template.

Variants

Text(&'a str)

A plain text fragment.

Hole(&'a str)

A hole in the template with a corresponding label to fill.

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

Performs the conversion.

Performs the conversion.

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.