pub struct ListCandidate {
pub text: String,
pub start: usize,
pub key: String,
}Expand description
One row of the candidate list: text for the syllables from start to the end of the composition.
Fields§
§text: String§start: usize§key: String这一行在词库里的键(带调音节以空格连接),选中后随 pin 一起保存,说明被覆盖的音节用的是哪个读音。
Trait Implementations§
Source§impl Clone for ListCandidate
impl Clone for ListCandidate
Source§impl Debug for ListCandidate
impl Debug for ListCandidate
impl Eq for ListCandidate
Source§impl PartialEq for ListCandidate
impl PartialEq for ListCandidate
impl StructuralPartialEq for ListCandidate
Auto Trait Implementations§
impl Freeze for ListCandidate
impl RefUnwindSafe for ListCandidate
impl Send for ListCandidate
impl Sync for ListCandidate
impl Unpin for ListCandidate
impl UnsafeUnpin for ListCandidate
impl UnwindSafe for ListCandidate
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.