Enum pinyin::Style
[−]
[src]
pub enum Style { Normal, Tone, Tone2, Initials, FirstLetter, Finals, FinalsTone, FinalsTone2, }
拼音风格
Variants
Normal
普通风格,不带声调(默认风格)。如: pin yin
Tone
声调风格1,拼音声调在韵母第一个字母上。如: pīn yīn
Tone2
声调风格2,即拼音声调在各个拼音之后,用数字 [0-4] 进行表示。如: pi1n yi1n
Initials
声母风格,只返回各个拼音的声母部分。如: 中国 的拼音 zh g
FirstLetter
首字母风格,只返回拼音的首字母部分。如: p y
Finals
韵母风格1,只返回各个拼音的韵母部分,不带声调。如: ong uo
FinalsTone
韵母风格2,带声调,声调在韵母第一个字母上。如: ōng uó
FinalsTone2
韵母风格2,带声调,声调在各个拼音之后,用数字 [0-4] 进行表示。如: o1ng uo2
Trait Implementations
impl Debug for Style
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Style
[src]
fn eq(&self, __arg_0: &Style) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.