pub struct NearDupAlgorithm {
pub k_gram_size: usize,
pub window_size: usize,
pub max_postings: usize,
}Expand description
Algorithm constants for near-duplicate fingerprinting.
Fields§
§k_gram_size: usizeNumber of tokens per k-gram shingle.
window_size: usizeWinnowing window size.
max_postings: usizeSkip fingerprints appearing in more than this many files.
Trait Implementations§
Source§impl Clone for NearDupAlgorithm
impl Clone for NearDupAlgorithm
Source§fn clone(&self) -> NearDupAlgorithm
fn clone(&self) -> NearDupAlgorithm
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 moreSource§impl Debug for NearDupAlgorithm
impl Debug for NearDupAlgorithm
Source§impl<'de> Deserialize<'de> for NearDupAlgorithm
impl<'de> Deserialize<'de> for NearDupAlgorithm
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 NearDupAlgorithm
impl PartialEq for NearDupAlgorithm
Source§impl Serialize for NearDupAlgorithm
impl Serialize for NearDupAlgorithm
impl Eq for NearDupAlgorithm
impl StructuralPartialEq for NearDupAlgorithm
Auto Trait Implementations§
impl Freeze for NearDupAlgorithm
impl RefUnwindSafe for NearDupAlgorithm
impl Send for NearDupAlgorithm
impl Sync for NearDupAlgorithm
impl Unpin for NearDupAlgorithm
impl UnsafeUnpin for NearDupAlgorithm
impl UnwindSafe for NearDupAlgorithm
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