pub struct PatternDetector { /* private fields */ }Expand description
Detects common design patterns in code.
Implementations§
Source§impl PatternDetector
impl PatternDetector
Sourcepub fn detect(&self, units: &[ResolvedUnit]) -> AcbResult<Vec<PatternInstance>>
pub fn detect(&self, units: &[ResolvedUnit]) -> AcbResult<Vec<PatternInstance>>
Detect all patterns in the resolved units.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatternDetector
impl !RefUnwindSafe for PatternDetector
impl Send for PatternDetector
impl Sync for PatternDetector
impl Unpin for PatternDetector
impl UnsafeUnpin 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