pub struct RuleEngine {
pub suppressions: Vec<SuppressionRule>,
pub ipa_config: IpaConfig,
/* private fields */
}Fields§
§suppressions: Vec<SuppressionRule>§ipa_config: IpaConfigImplementations§
Source§impl RuleEngine
impl RuleEngine
pub fn new() -> Self
pub fn with_builtin_rules() -> Self
Sourcepub fn set_ipa_config(&mut self, config: IpaConfig)
pub fn set_ipa_config(&mut self, config: IpaConfig)
Set the inter-procedural analysis configuration
pub fn register_rule(&mut self, rule: Box<dyn Rule>)
pub fn run(&self, package: &MirPackage) -> AnalysisResult
pub fn rule_metadata(&self) -> Vec<RuleMetadata>
pub fn cache_fingerprint(&self) -> String
pub fn load_rulepack<P: AsRef<Path>>(&mut self, path: P) -> Result<()>
pub fn load_rulepack_from_reader<R: Read>( &mut self, reader: R, origin: &str, ) -> Result<()>
pub fn load_wasm_module<P: AsRef<Path>>(&mut self, path: P) -> Result<()>
Auto Trait Implementations§
impl Freeze for RuleEngine
impl !RefUnwindSafe for RuleEngine
impl Send for RuleEngine
impl Sync for RuleEngine
impl Unpin for RuleEngine
impl UnsafeUnpin for RuleEngine
impl !UnwindSafe for RuleEngine
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> 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