pub enum Style {
Normal,
Tone,
Tone2,
Initials,
FirstLetter,
Finals,
FinalsTone,
FinalsTone2,
}
👎Deprecated: 请使用
Pinyin
的方法代替Expand description
拼音风格
Variants§
Normal
👎Deprecated: 请使用
Pinyin
的方法代替普通风格,不带声调(默认风格)。如: pin yin
Tone
👎Deprecated: 请使用
Pinyin
的方法代替声调风格1,拼音声调在韵母第一个字母上。如: pīn yīn
Tone2
👎Deprecated: 请使用
Pinyin
的方法代替声调风格2,即拼音声调在各个拼音之后,用数字 [0-4] 进行表示。如: pi1n yi1n
Initials
👎Deprecated: 请使用
Pinyin
的方法代替声母风格,只返回各个拼音的声母部分。如: 中国 的拼音 zh g
FirstLetter
👎Deprecated: 请使用
Pinyin
的方法代替首字母风格,只返回拼音的首字母部分。如: p y
Finals
👎Deprecated: 请使用
Pinyin
的方法代替韵母风格1,只返回各个拼音的韵母部分,不带声调。如: ong uo
FinalsTone
👎Deprecated: 请使用
Pinyin
的方法代替韵母风格2,带声调,声调在韵母第一个字母上。如: ōng uó
FinalsTone2
👎Deprecated: 请使用
Pinyin
的方法代替韵母风格2,带声调,声调在各个拼音之后,用数字 [0-4] 进行表示。如: o1ng uo2
Trait Implementations§
source§impl PartialEq<Style> for Style
impl PartialEq<Style> for Style
impl Eq for Style
impl StructuralEq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more