pub struct PersonalDictionaryEntry {
pub kind: PersonalDictionaryKind,
pub key: String,
pub value: String,
pub weight: i64,
}Expand description
A user’s own dictionary entry. Pinyin keys are complete syllables joined by '; wubi 1..=4 letters; quick phrases 1..=32 letters or digits; English 1..=64 letters.
Fields§
§kind: PersonalDictionaryKind§key: String§value: String§weight: i64Implementations§
Source§impl PersonalDictionaryEntry
impl PersonalDictionaryEntry
pub const DEFAULT_WEIGHT: i64 = 100_000
Trait Implementations§
Source§impl Clone for PersonalDictionaryEntry
impl Clone for PersonalDictionaryEntry
Source§impl Debug for PersonalDictionaryEntry
impl Debug for PersonalDictionaryEntry
Source§impl Default for PersonalDictionaryEntry
impl Default for PersonalDictionaryEntry
impl Eq for PersonalDictionaryEntry
Source§impl Hash for PersonalDictionaryEntry
impl Hash for PersonalDictionaryEntry
Source§impl PartialEq for PersonalDictionaryEntry
impl PartialEq for PersonalDictionaryEntry
impl StructuralPartialEq for PersonalDictionaryEntry
Auto Trait Implementations§
impl Freeze for PersonalDictionaryEntry
impl RefUnwindSafe for PersonalDictionaryEntry
impl Send for PersonalDictionaryEntry
impl Sync for PersonalDictionaryEntry
impl Unpin for PersonalDictionaryEntry
impl UnsafeUnpin for PersonalDictionaryEntry
impl UnwindSafe for PersonalDictionaryEntry
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.