pub struct PatternExtractor { /* private fields */ }Expand description
Extracts usage patterns from a code graph.
Currently a placeholder implementation that demonstrates the type system without performing deep pattern mining.
Implementations§
Source§impl PatternExtractor
impl PatternExtractor
Sourcepub fn with_min_occurrences(min_occurrences: u32) -> Self
pub fn with_min_occurrences(min_occurrences: u32) -> Self
Create a pattern extractor with a custom minimum occurrence threshold.
Sourcepub fn extract(&self, _graph: &CodeGraph) -> Vec<UsagePattern>
pub fn extract(&self, _graph: &CodeGraph) -> Vec<UsagePattern>
Extract patterns from a code graph.
This is a placeholder implementation. In a full implementation, this would perform structural pattern mining on the graph. Currently returns an empty list.
Sourcepub fn min_occurrences(&self) -> u32
pub fn min_occurrences(&self) -> u32
Get the minimum occurrence threshold.
Trait Implementations§
Source§impl Clone for PatternExtractor
impl Clone for PatternExtractor
Source§fn clone(&self) -> PatternExtractor
fn clone(&self) -> PatternExtractor
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 PatternExtractor
impl Debug for PatternExtractor
Auto Trait Implementations§
impl Freeze for PatternExtractor
impl RefUnwindSafe for PatternExtractor
impl Send for PatternExtractor
impl Sync for PatternExtractor
impl Unpin for PatternExtractor
impl UnsafeUnpin for PatternExtractor
impl UnwindSafe for PatternExtractor
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