pub struct Similarity<P: AsRef<Path> + Send + Sync> {
pub path: P,
pub threshold: f32,
}Expand description
Similarity checker
Fields§
§path: PPath to check
threshold: f32Threshold for when files are considered too similar
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for Similarity<P>where
P: Freeze,
impl<P> RefUnwindSafe for Similarity<P>where
P: RefUnwindSafe,
impl<P> Send for Similarity<P>
impl<P> Sync for Similarity<P>
impl<P> Unpin for Similarity<P>where
P: Unpin,
impl<P> UnsafeUnpin for Similarity<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Similarity<P>where
P: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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