Struct wordshk_tools::Def[][src]

pub struct Def {
    pub yue: Clause,
    pub eng: Option<Clause>,
    pub alts: Vec<AltClause>,
    pub egs: Vec<Eg>,
}
Expand description

A definition of a word

Here’s an example of the definition of the word 年畫

[yue] Cantonese explanation of the word’s meaning: 東亞民間慶祝#新春 嘅畫種(量詞:幅)

[eng] English explanation of the word’s meaning: new year picture in East Asia

[alts] Word with similar meaning in other languages: jpn:年画;ねんが, kor:세화, vie:Tranh tết

[egs] Example sentences usually with Jyutping pronunciations and English translations

Fields

yue: Clauseeng: Option<Clause>alts: Vec<AltClause>egs: Vec<Eg>

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.