pub struct SemanticResult {
pub warnings: Vec<String>,
pub suggestions: Vec<String>,
pub errors: Vec<String>,
pub complexity_metrics: ComplexityMetrics,
pub security_issues: Vec<SecurityIssue>,
pub performance_metrics: PerformanceMetrics,
}Expand description
Result of semantic analysis
Fields§
§warnings: Vec<String>§suggestions: Vec<String>§errors: Vec<String>§complexity_metrics: ComplexityMetrics§security_issues: Vec<SecurityIssue>§performance_metrics: PerformanceMetricsImplementations§
Source§impl SemanticResult
impl SemanticResult
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if analysis found any errors
Sourcepub fn has_security_issues(&self) -> bool
pub fn has_security_issues(&self) -> bool
Check if analysis found any security issues
Sourcepub fn critical_issue_count(&self) -> usize
pub fn critical_issue_count(&self) -> usize
Get count of high/critical security issues
Sourcepub fn total_issues(&self) -> usize
pub fn total_issues(&self) -> usize
Get total issue count
Trait Implementations§
Source§impl Clone for SemanticResult
impl Clone for SemanticResult
Source§fn clone(&self) -> SemanticResult
fn clone(&self) -> SemanticResult
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 moreAuto Trait Implementations§
impl Freeze for SemanticResult
impl RefUnwindSafe for SemanticResult
impl Send for SemanticResult
impl Sync for SemanticResult
impl Unpin for SemanticResult
impl UnwindSafe for SemanticResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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