pub struct CompareParams {
pub thresholds: Thresholds,
pub min_tokens: usize,
pub min_lines: usize,
}Expand description
Settings of a comparison.
Fields§
§thresholds: ThresholdsThe similarities the rules need, on the scale of the embedder’s model.
min_tokens: usizeFunctions with fewer detection tokens do not count and do not take part in step 1.
min_lines: usizeFunctions of fewer lines, the first and the last included, do not count and do not take part in step 1.
Trait Implementations§
Source§impl Clone for CompareParams
impl Clone for CompareParams
impl Copy for CompareParams
Auto Trait Implementations§
impl Freeze for CompareParams
impl RefUnwindSafe for CompareParams
impl Send for CompareParams
impl Sync for CompareParams
impl Unpin for CompareParams
impl UnsafeUnpin for CompareParams
impl UnwindSafe for CompareParams
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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