pub struct ShuangpinCustomTable {
pub initials: Vec<(String, String)>,
pub finals: Vec<(String, String)>,
pub zero_initials: Vec<(String, String)>,
}Expand description
用户自定义双拼方案的键位表(共享偏好 shuangpin_custom_profile)。三张表与内置方案同构:initials 只写三个多字母声母 zh ch sh,单字母声母仍在自己的字母键上;finals 把 33 个韵母各放到一个键上;zero_initials 给 12 个零声母音节各一个两键编码。键是小写字母或 ;,ü 写作 v。表合不合法由 Engine 判定(见 shuangpin::custom),顺序无关。
Fields§
§initials: Vec<(String, String)>§finals: Vec<(String, String)>§zero_initials: Vec<(String, String)>Trait Implementations§
Source§impl Clone for ShuangpinCustomTable
impl Clone for ShuangpinCustomTable
Source§impl Debug for ShuangpinCustomTable
impl Debug for ShuangpinCustomTable
Source§impl Default for ShuangpinCustomTable
impl Default for ShuangpinCustomTable
impl Eq for ShuangpinCustomTable
Source§impl PartialEq for ShuangpinCustomTable
impl PartialEq for ShuangpinCustomTable
impl StructuralPartialEq for ShuangpinCustomTable
Auto Trait Implementations§
impl Freeze for ShuangpinCustomTable
impl RefUnwindSafe for ShuangpinCustomTable
impl Send for ShuangpinCustomTable
impl Sync for ShuangpinCustomTable
impl Unpin for ShuangpinCustomTable
impl UnsafeUnpin for ShuangpinCustomTable
impl UnwindSafe for ShuangpinCustomTable
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.