Enum Converters

Source
pub enum Converters {
Show 14 variants S2T, T2S, S2TW, TW2S, S2TWP, TW2SP, T2TW, TW2T, S2HK, HK2S, T2HK, HK2T, T2JP, JP2T,
}

Variants§

§

S2T

Simplified Chinese to Traditional Chinese

简体中文 → 繁体中文

§

T2S

Traditional Chinese to Simplified Chinese

繁体中文 → 简体中文

§

S2TW

Simplified Chinese to Traditional Chinese (Taiwan)

简体中文 → 繁体中文(台湾)

§

TW2S

Traditional Chinese (Taiwan) to Simplified Chinese

繁体中文(台湾)→ 简体中文

§

S2TWP

Simplified Chinese to Traditional Chinese (Taiwan) with Taiwanese idiom

简体中文 → 繁体中文(台湾),转换为台湾常用词

§

TW2SP

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

繁体中文(台湾)→ 简体中文,转化为中国大陆常用词

§

T2TW

Traditional Chinese to Traditional Chinese (Taiwan)

繁体中文 → 繁体中文(台湾)

§

TW2T

Traditional Chinese (Taiwan) to Traditional Chinese

繁体中文(台湾)→ 繁体中文

§

S2HK

Simplified Chinese to Traditional Chinese (Hong Kong)

简体中文 → 繁体中文(香港)

§

HK2S

Traditional Chinese (Hong Kong) to Simplified Chinese

繁体中文(香港)→ 简体中文

§

T2HK

Traditional Chinese to Traditional Chinese (Hong Kong)

繁体中文 → 繁体中文(香港)

§

HK2T

Traditional Chinese (Hong Kong) to Traditional Chinese

繁体中文(香港)→ 繁体中文

§

T2JP

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

繁体字 → 日文新字体

§

JP2T

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

日文新字体 → 繁体字

Implementations§

Source§

impl Converters

Source

pub fn new(&self) -> Converter

Source

pub fn dictionaries(&self) -> Vec<Trie<&'static str>>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.