pub struct Lexeme {
pub input: Range<usize>,
pub text: String,
pub language: Language,
pub rank: u16,
}Expand description
提供者已确认的词条。范围按原始输入的 UTF-8 字节计数,名次仅来自同读音候选。
Fields§
§input: Range<usize>§text: String§language: Language§rank: u16Trait Implementations§
impl Eq for Lexeme
impl StructuralPartialEq for Lexeme
Auto Trait Implementations§
impl Freeze for Lexeme
impl RefUnwindSafe for Lexeme
impl Send for Lexeme
impl Sync for Lexeme
impl Unpin for Lexeme
impl UnsafeUnpin for Lexeme
impl UnwindSafe for Lexeme
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.