[][src]Enum pinyin::Style

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

请使用 Pinyin 的方法代替

拼音风格

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

impl Debug for Style[src]

impl Eq for Style[src]

impl Hash for Style[src]

impl PartialEq<Style> for Style[src]

impl StructuralEq for Style[src]

impl StructuralPartialEq for Style[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.