pub struct FrameworkDetectionUtils;Expand description
Shared utilities for framework detection across languages
Implementations§
Source§impl FrameworkDetectionUtils
impl FrameworkDetectionUtils
Sourcepub fn detect_technologies_by_dependencies(
rules: &[TechnologyRule],
dependencies: &[String],
base_confidence: f32,
) -> Vec<DetectedTechnology>
pub fn detect_technologies_by_dependencies( rules: &[TechnologyRule], dependencies: &[String], base_confidence: f32, ) -> Vec<DetectedTechnology>
Generic technology detection based on dependency patterns
Sourcepub fn matches_pattern(dependency: &str, pattern: &str) -> bool
pub fn matches_pattern(dependency: &str, pattern: &str) -> bool
Check if a dependency matches a pattern (supports wildcards)
Sourcepub fn resolve_technology_conflicts(
technologies: Vec<DetectedTechnology>,
) -> Vec<DetectedTechnology>
pub fn resolve_technology_conflicts( technologies: Vec<DetectedTechnology>, ) -> Vec<DetectedTechnology>
Resolves conflicts between mutually exclusive technologies
Sourcepub fn mark_primary_technologies(
technologies: Vec<DetectedTechnology>,
) -> Vec<DetectedTechnology>
pub fn mark_primary_technologies( technologies: Vec<DetectedTechnology>, ) -> Vec<DetectedTechnology>
Marks technologies that are primary drivers of the application architecture
Auto Trait Implementations§
impl Freeze for FrameworkDetectionUtils
impl RefUnwindSafe for FrameworkDetectionUtils
impl Send for FrameworkDetectionUtils
impl Sync for FrameworkDetectionUtils
impl Unpin for FrameworkDetectionUtils
impl UnwindSafe for FrameworkDetectionUtils
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more