Struct wana_kana::Options

source ·
pub struct Options {
    pub use_obsolete_kana: bool,
    pub pass_romaji: bool,
    pub upcase_katakana: bool,
    pub imemode: bool,
}
Expand description

Options to set.

Fields§

§use_obsolete_kana: bool

Set to true to use obsolete characters, such as ゐ and ゑ.

§pass_romaji: bool

Set to true to pass romaji when using mixed syllabaries with to_katakana() or to_hiragana() toHiragana(‘only convert the katakana: ヒラガナ’, { passRomaji: true }) => “only convert the katakana: ひらがな”

§upcase_katakana: bool

Set to true to convert katakana to uppercase using to_romaji() to_romaji(‘ひらがな カタカナ’, { upcaseKatakana: true })

§imemode: bool

Set to true to handle conversion while it is being typed

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. 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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.