pub struct Hit {
pub id: u32,
pub cost: Cost,
pub weight: u16,
}Expand description
One result.
Fields§
§id: u32Term id (see Trie::term): the term’s position in the byte-sorted,
deduplicated list, not in the slice given to Trie::build;
Trie::input_index maps it back.
cost: CostExact weighted edit cost between the query and the term, whatever the
Ranking.
weight: u16The term’s weight.
Trait Implementations§
impl Copy for Hit
impl Eq for Hit
impl StructuralPartialEq for Hit
Auto Trait Implementations§
impl Freeze for Hit
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnsafeUnpin for Hit
impl UnwindSafe for Hit
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