Struct cwe_checker_lib::CweModule
source · pub struct CweModule {
pub name: &'static str,
pub version: &'static str,
pub run: CweModuleFn,
}
Expand description
A structure containing general information about a CWE analysis module, including the function to be called to run the analysis.
Fields§
§name: &'static str
The name of the CWE check.
version: &'static str
The version number of the CWE check. Should be incremented whenever significant changes are made to the check.
run: CweModuleFn
The function that executes the check and returns CWE warnings found during the check.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for CweModule
impl Send for CweModule
impl Sync for CweModule
impl Unpin for CweModule
impl UnwindSafe for CweModule
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