#[repr(i32)]pub enum BuiltinConfig {
Show 14 variants
S2t = 0,
T2s = 1,
S2tw = 2,
Tw2s = 3,
S2hk = 4,
Hk2s = 5,
S2twp = 6,
Tw2sp = 7,
T2tw = 8,
Tw2t = 9,
T2hk = 10,
Hk2t = 11,
Jp2t = 12,
T2jp = 13,
}Expand description
所有内置的 OpenCC 配置
Variants§
S2t = 0
简体到繁体
T2s = 1
繁体到简体
S2tw = 2
简体到台湾正体
Tw2s = 3
台湾正体到简体
S2hk = 4
简体到香港繁体
Hk2s = 5
香港繁体到简体
S2twp = 6
简体到台湾正体(包含词汇转换)
Tw2sp = 7
台湾正体(包含词汇转换)到简体
T2tw = 8
繁体到台湾正体
Tw2t = 9
台湾正体到繁体
T2hk = 10
繁体到香港繁体
Hk2t = 11
香港繁体到繁体
Jp2t = 12
日语新字体到繁体
T2jp = 13
繁体到日语新字体
Implementations§
Source§impl BuiltinConfig
impl BuiltinConfig
Sourcepub fn to_filename(&self) -> &'static str
pub fn to_filename(&self) -> &'static str
将枚举成员转换为对应的文件名字符串
Sourcepub fn from_filename(filename: &str) -> Result<Self>
pub fn from_filename(filename: &str) -> Result<Self>
从文件名字符串转换为对应的枚举成员
Trait Implementations§
Source§impl Clone for BuiltinConfig
impl Clone for BuiltinConfig
Source§fn clone(&self) -> BuiltinConfig
fn clone(&self) -> BuiltinConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuiltinConfig
impl Debug for BuiltinConfig
Source§impl PartialEq for BuiltinConfig
impl PartialEq for BuiltinConfig
impl Copy for BuiltinConfig
impl Eq for BuiltinConfig
impl StructuralPartialEq for BuiltinConfig
Auto Trait Implementations§
impl Freeze for BuiltinConfig
impl RefUnwindSafe for BuiltinConfig
impl Send for BuiltinConfig
impl Sync for BuiltinConfig
impl Unpin for BuiltinConfig
impl UnwindSafe for BuiltinConfig
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