pub struct QualityValidator { /* private fields */ }Expand description
Code quality validator for memory analysis operations
Implementations§
Source§impl QualityValidator
impl QualityValidator
Sourcepub fn with_config(config: ValidationConfig) -> Self
pub fn with_config(config: ValidationConfig) -> Self
Create validator with custom configuration
Sourcepub fn add_rule(&mut self, rule: ValidationRule)
pub fn add_rule(&mut self, rule: ValidationRule)
Add custom validation rule
Sourcepub fn remove_rule(&mut self, rule_id: &str) -> bool
pub fn remove_rule(&mut self, rule_id: &str) -> bool
Remove validation rule by ID
Sourcepub fn set_rule_enabled(&mut self, rule_id: &str, enabled: bool) -> bool
pub fn set_rule_enabled(&mut self, rule_id: &str, enabled: bool) -> bool
Enable or disable a specific rule
Sourcepub fn validate(&mut self, context: &ValidationContext) -> ValidationResult
pub fn validate(&mut self, context: &ValidationContext) -> ValidationResult
Validate operation with all enabled rules
Sourcepub fn get_rule_statistics(&self) -> &HashMap<String, RuleStats>
pub fn get_rule_statistics(&self) -> &HashMap<String, RuleStats>
Get statistics for all rules
Sourcepub fn reset_statistics(&mut self)
pub fn reset_statistics(&mut self)
Reset all statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QualityValidator
impl RefUnwindSafe for QualityValidator
impl Send for QualityValidator
impl Sync for QualityValidator
impl Unpin for QualityValidator
impl UnwindSafe for QualityValidator
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> 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