Enum pinyin::Style[][src]

pub enum Style {
    Normal,
    Tone,
    Tone2,
    Initials,
    FirstLetter,
    Finals,
    FinalsTone,
    FinalsTone2,
}

拼音风格

Variants

普通风格,不带声调(默认风格)。如: pin yin

声调风格1,拼音声调在韵母第一个字母上。如: pīn yīn

声调风格2,即拼音声调在各个拼音之后,用数字 [0-4] 进行表示。如: pi1n yi1n

声母风格,只返回各个拼音的声母部分。如: 中国 的拼音 zh g

首字母风格,只返回拼音的首字母部分。如: p y

韵母风格1,只返回各个拼音的韵母部分,不带声调。如: ong uo

韵母风格2,带声调,声调在韵母第一个字母上。如: ōng uó

韵母风格2,带声调,声调在各个拼音之后,用数字 [0-4] 进行表示。如: o1ng uo2

Trait Implementations

impl Debug for Style
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Style
[src]

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

This method tests for !=.

impl Eq for Style
[src]

impl Hash for Style
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Style

impl Sync for Style