Docs.rs
cpd-core-0.1.13
cpd-core 0.1.13
Docs.rs crate page
MIT
15 September 2026
Links
Homepage
Repository
crates.io
Source
Owners
kucherenko
Dependencies
rayon ^1
normal
rustc-hash ^2
normal
serde ^1
normal
xxhash-rust ^0.8
normal
serde_json ^1
dev
Versions
49.25%
of the crate is documented
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module detect
cpd_
core
0.1.13
Module detect
Module Items
Structs
Constants
Functions
In crate cpd_
core
cpd_core
Module
detect
Copy item path
Source
Structs
§
Path
Filters
Path-based clone pair filters, applied when a clone is flushed.
Prepared
Source
A file ready for detection: pre-hashed, pre-filtered.
Constants
§
MIN_
GAP_
SIMILARITY
Lowest similarity a gap merge may produce. Below it the merged span would hold more unmatched than matched tokens (one very long inserted line, say), which is not a near-miss copy: the halves stay separate.
Functions
§
detect
Detect duplicate code clones across
files
using a rolling-hash sliding window.
detect_
prepared
Detect clones from pre-prepared sources grouped by format.
detect_
with_
options
Detect clones with extended options.
merge_
gapped_
clones
Gap-tolerant merging (issue #999, stage 1).