pub struct RepositoryCloneDetector { /* private fields */ }Implementations§
Source§impl RepositoryCloneDetector
impl RepositoryCloneDetector
pub fn new(detector: CloneDetector) -> Self
pub fn options(self, options: RepositoryOptions) -> Self
Sourcepub fn detect(&self, root: impl Into<PathBuf>) -> Result<CloneReport>
pub fn detect(&self, root: impl Into<PathBuf>) -> Result<CloneReport>
Scans a repository once, fragments selected source files, and detects deterministic clone families.
§Errors
Rejects incomplete scans, invalid UTF-8 source, fragment limits, and clone-core validation failures without returning partial output.
Trait Implementations§
Source§impl Clone for RepositoryCloneDetector
impl Clone for RepositoryCloneDetector
Source§fn clone(&self) -> RepositoryCloneDetector
fn clone(&self) -> RepositoryCloneDetector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RepositoryCloneDetector
impl RefUnwindSafe for RepositoryCloneDetector
impl Send for RepositoryCloneDetector
impl Sync for RepositoryCloneDetector
impl Unpin for RepositoryCloneDetector
impl UnsafeUnpin for RepositoryCloneDetector
impl UnwindSafe for RepositoryCloneDetector
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