#[repr(u8)]pub enum ShuangpinProfileKind {
Xiaohe = 0,
Ziranma = 1,
Shoudao = 2,
Microsoft = 3,
Custom = 4,
SmartAbc = 5,
}Expand description
双拼键位方案,序号是宿主 ABI 值(EngineOptions::shuangpin_profile),新增方案只追加。
Variants§
Xiaohe = 0
Ziranma = 1
Shoudao = 2
Microsoft = 3
Custom = 4
用户自定义的键位,表在 ShuangpinCustomTable 里(EngineOptions::shuangpin_custom_profile、SessionOptions::shuangpin_custom_profile),没有内置的表。
SmartAbc = 5
Implementations§
Source§impl ShuangpinProfileKind
impl ShuangpinProfileKind
pub fn from_u8(value: u8) -> Option<Self>
Sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
Exact-name lookup. The C++ GetShuangpinProfile fell back to xiaohe for an unknown name; callers that want that do it themselves, so an unknown name stays visible here.
pub fn name(self) -> &'static str
Trait Implementations§
Source§impl Clone for ShuangpinProfileKind
impl Clone for ShuangpinProfileKind
impl Copy for ShuangpinProfileKind
Source§impl Debug for ShuangpinProfileKind
impl Debug for ShuangpinProfileKind
Source§impl Default for ShuangpinProfileKind
impl Default for ShuangpinProfileKind
impl Eq for ShuangpinProfileKind
Source§impl Hash for ShuangpinProfileKind
impl Hash for ShuangpinProfileKind
Source§impl PartialEq for ShuangpinProfileKind
impl PartialEq for ShuangpinProfileKind
impl StructuralPartialEq for ShuangpinProfileKind
Auto Trait Implementations§
impl Freeze for ShuangpinProfileKind
impl RefUnwindSafe for ShuangpinProfileKind
impl Send for ShuangpinProfileKind
impl Sync for ShuangpinProfileKind
impl Unpin for ShuangpinProfileKind
impl UnsafeUnpin for ShuangpinProfileKind
impl UnwindSafe for ShuangpinProfileKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.