pub struct SimilarityProviderResults<'a> { /* private fields */ }Expand description
Writes results for one provider node or edge visit.
Only use this writer during the provider callback that received it.
Implementations§
Source§impl<'a> SimilarityProviderResults<'a>
impl<'a> SimilarityProviderResults<'a>
Sourcepub fn add_result(
&mut self,
source: SimilarityEntityRef,
target: SimilarityEntityRef,
similarity: u8,
confidence: u8,
) -> SimilarityResultId
pub fn add_result( &mut self, source: SimilarityEntityRef, target: SimilarityEntityRef, similarity: u8, confidence: u8, ) -> SimilarityResultId
Adds a result for a scheduled entity and returns its ID, or zero on failure. The ID is unique within the node. A later visit replaces the result and gives it a new ID.
Auto Trait Implementations§
impl<'a> Freeze for SimilarityProviderResults<'a>
impl<'a> RefUnwindSafe for SimilarityProviderResults<'a>
impl<'a> !Send for SimilarityProviderResults<'a>
impl<'a> !Sync for SimilarityProviderResults<'a>
impl<'a> Unpin for SimilarityProviderResults<'a>
impl<'a> UnsafeUnpin for SimilarityProviderResults<'a>
impl<'a> !UnwindSafe for SimilarityProviderResults<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more