pub struct GramMatch {
pub value: i32,
pub length: usize,
}Expand description
common_prefix_search 的一条命中:值与命中键的字节长度(不是码点数)。
Fields§
§value: i32§length: usizeTrait Implementations§
impl Copy for GramMatch
impl Eq for GramMatch
impl StructuralPartialEq for GramMatch
Auto Trait Implementations§
impl Freeze for GramMatch
impl RefUnwindSafe for GramMatch
impl Send for GramMatch
impl Sync for GramMatch
impl Unpin for GramMatch
impl UnsafeUnpin for GramMatch
impl UnwindSafe for GramMatch
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.