pub struct PatternDetector {
pub confidence_threshold: f32,
}Expand description
Detects coding patterns and architectural patterns in the codebase
Fields§
§confidence_threshold: f32Minimum confidence threshold for pattern detection (0.0 to 1.0)
Implementations§
Source§impl PatternDetector
impl PatternDetector
Sourcepub fn with_threshold(confidence_threshold: f32) -> Self
pub fn with_threshold(confidence_threshold: f32) -> Self
Creates a new PatternDetector with a custom confidence threshold
Sourcepub fn detect(
&self,
scan_result: &ScanResult,
) -> Result<Vec<DetectedPattern>, ResearchError>
pub fn detect( &self, scan_result: &ScanResult, ) -> Result<Vec<DetectedPattern>, ResearchError>
Trait Implementations§
Source§impl Clone for PatternDetector
impl Clone for PatternDetector
Source§fn clone(&self) -> PatternDetector
fn clone(&self) -> PatternDetector
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 PatternDetector
impl Debug for PatternDetector
Auto Trait Implementations§
impl Freeze for PatternDetector
impl RefUnwindSafe for PatternDetector
impl Send for PatternDetector
impl Sync for PatternDetector
impl Unpin for PatternDetector
impl UnwindSafe for PatternDetector
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