pub struct ScoredChunk {
pub chunk: Chunk,
pub score: f32,
}Expand description
A search hit: a chunk and its score (larger = more relevant).
Fields§
§chunk: ChunkThe matched chunk.
score: f32Relevance score (positive; we flip SQLite’s negative BM25).
Trait Implementations§
Source§impl Clone for ScoredChunk
impl Clone for ScoredChunk
Source§fn clone(&self) -> ScoredChunk
fn clone(&self) -> ScoredChunk
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScoredChunk
impl Debug for ScoredChunk
Source§impl<'de> Deserialize<'de> for ScoredChunk
impl<'de> Deserialize<'de> for ScoredChunk
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScoredChunk
impl PartialEq for ScoredChunk
Source§fn eq(&self, other: &ScoredChunk) -> bool
fn eq(&self, other: &ScoredChunk) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScoredChunk
impl Serialize for ScoredChunk
impl StructuralPartialEq for ScoredChunk
Auto Trait Implementations§
impl Freeze for ScoredChunk
impl RefUnwindSafe for ScoredChunk
impl Send for ScoredChunk
impl Sync for ScoredChunk
impl Unpin for ScoredChunk
impl UnsafeUnpin for ScoredChunk
impl UnwindSafe for ScoredChunk
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