pub struct StreamingMatch { /* private fields */ }Expand description
A match found during streaming search.
Contains the byte offsets within the entire stream (not just the current chunk).
Implementations§
Source§impl StreamingMatch
impl StreamingMatch
Sourcepub fn similarity(&self) -> f32
pub fn similarity(&self) -> f32
Get the similarity score (0.0 to 1.0).
Trait Implementations§
Source§impl Clone for StreamingMatch
impl Clone for StreamingMatch
Source§fn clone(&self) -> StreamingMatch
fn clone(&self) -> StreamingMatch
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 moreAuto Trait Implementations§
impl Freeze for StreamingMatch
impl RefUnwindSafe for StreamingMatch
impl Send for StreamingMatch
impl Sync for StreamingMatch
impl Unpin for StreamingMatch
impl UnsafeUnpin for StreamingMatch
impl UnwindSafe for StreamingMatch
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