pub enum Flowing<'a> {
    Italic,
    Labels {
        labels: Vec<Cow<'a, str>>,
    },
    Link {
        target: Cow<'a, str>,
        text: Cow<'a, str>,
    },
    Plural,
    Qualifier {
        value: Cow<'a, str>,
    },
    Text {
        value: Cow<'a, str>,
    },
    Translation {
        gender: Option<Cow<'a, str>>,
        term: Cow<'a, str>,
    },
    Unknown {
        value: Cow<'a, str>,
    },
}
Expand description

An element in a sequence that allows different kinds of elements.

Variants§

§

Italic

Toggle italic.

Parsed from the wiki text ''.

§

Labels

Fields

§labels: Vec<Cow<'a, str>>

The labels.

List of labels, from the template Příznak2.

Duplicate labels are not allowed.

Fields

§target: Cow<'a, str>

The target the link refers to.

§text: Cow<'a, str>

The text to display for the link.

Link.

Parsed from wiki text starting with [[.

§

Plural

Indication that something is a plural, from the template množ.

§

Qualifier

Fields

§value: Cow<'a, str>

The text to display.

Qualifier, from the template Upřesnění.

§

Text

Fields

§value: Cow<'a, str>

The text to display.

Chunk of plain text.

§

Translation

Fields

§gender: Option<Cow<'a, str>>

The gender of the term the link refers to, if specified, otherwise empty.

§term: Cow<'a, str>

The term the link refers to.

Link to a foreign word in translations, from the template P.

§

Unknown

Fields

§value: Cow<'a, str>

The wiki text of the element.

Element that could not be recognized.

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

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.