pub struct Definition<'a> {
    pub definition: Vec<Flowing<'a>>,
    pub examples: Vec<Cow<'a, str>>,
    pub labels: Vec<Cow<'a, str>>,
    pub phrase: Option<Cow<'a, str>>,
}
Expand description

A single definition from a list of definitions of an entry.

Parsed from a single list item in the section význam.

Fields§

§definition: Vec<Flowing<'a>>

A series of elements to display as the definition.

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

List of example sentences belonging to the definition, from the template Příklad.

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

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

Duplicate labels are not allowed.

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

A text to display as a phrase, if any, from the template Vazba.

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.