[][src]Enum opencc_rust::DefaultConfig

pub enum DefaultConfig {
    S2T,
    T2S,
    S2TW,
    TW2S,
    S2HK,
    HK2S,
    S2TWP,
    TW2SP,
    T2TW,
    T2HK,
    JP2T,
    T2JP,
}

Default configs.

Variants

S2T

Simplified Chinese to Traditional Chinese

T2S

Traditional Chinese to Simplified Chinese

S2TW

Simplified Chinese to Traditional Chinese (Taiwan Standard)

TW2S

Traditional Chinese (Taiwan Standard) to Simplified Chinese

S2HK

Simplified Chinese to Traditional Chinese (Hong Kong Standard)

HK2S

Traditional Chinese (Hong Kong Standard) to Simplified Chinese

S2TWP

Simplified Chinese to Traditional Chinese (Taiwan Standard) with Taiwanese idiom

TW2SP

Traditional Chinese (Taiwan Standard) to Simplified Chinese with Mainland Chinese idiom

T2TW

Traditional Chinese (OpenCC Standard) to Taiwan Standard

T2HK

Traditional Chinese (OpenCC Standard) to Hong Kong Standard

JP2T

New Japanese Kanji (Shinjitai) to Traditional Chinese Characters (Kyūjitai)

T2JP

Traditional Chinese Characters (Kyūjitai) to New Japanese Kanji (Shinjitai)

Implementations

impl DefaultConfig[src]

pub fn get_file_name(self) -> &'static str[src]

Get the file name for this default config.

Trait Implementations

impl AsRef<Path> for DefaultConfig[src]

impl AsRef<str> for DefaultConfig[src]

impl Clone for DefaultConfig[src]

impl Copy for DefaultConfig[src]

impl Debug for DefaultConfig[src]

Auto Trait Implementations

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> EndsWithCaseless for T where
    T: AsRef<str>, 

impl<T> EndsWithCaselessMultiple for T where
    T: AsRef<str>, 

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

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

impl<T> StartsWithCaseless for T where
    T: AsRef<str>, 

impl<T> StartsWithCaselessMultiple for T where
    T: AsRef<str>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.