pub struct TokenIndexValue<T> {
pub index: T,
pub value: f32,
}Expand description
Fields§
§index: TThe unique identifier for the token
value: f32The BM25 value value for this token
Trait Implementations§
Source§impl<T: Clone> Clone for TokenIndexValue<T>
impl<T: Clone> Clone for TokenIndexValue<T>
Source§fn clone(&self) -> TokenIndexValue<T>
fn clone(&self) -> TokenIndexValue<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for TokenIndexValue<T>
impl<T: Debug> Debug for TokenIndexValue<T>
Source§impl<T: PartialEq> PartialEq for TokenIndexValue<T>
impl<T: PartialEq> PartialEq for TokenIndexValue<T>
Source§impl<T: PartialOrd> PartialOrd for TokenIndexValue<T>
impl<T: PartialOrd> PartialOrd for TokenIndexValue<T>
impl<T> StructuralPartialEq for TokenIndexValue<T>
Auto Trait Implementations§
impl<T> Freeze for TokenIndexValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for TokenIndexValue<T>where
T: RefUnwindSafe,
impl<T> Send for TokenIndexValue<T>where
T: Send,
impl<T> Sync for TokenIndexValue<T>where
T: Sync,
impl<T> Unpin for TokenIndexValue<T>where
T: Unpin,
impl<T> UnwindSafe for TokenIndexValue<T>where
T: UnwindSafe,
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