pub struct ExampleRule;Expand description
EXAMPLE-001 — flags any function whose name contains sdkt_example_trigger.
Deliberately contrived so it never interferes with real audits or the built-in rules’ outputs.
Trait Implementations§
Source§impl AuditRule for ExampleRule
Available on non-WebAssembly only.
impl AuditRule for ExampleRule
Available on non-WebAssembly only.
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Human-readable description of what the rule checks.
Source§fn check(
&self,
scans: &[FnScan],
_ctx: &AuditContext<'_>,
report: &mut AuditReport,
)
fn check( &self, scans: &[FnScan], _ctx: &AuditContext<'_>, report: &mut AuditReport, )
Run the rule over the scanned functions and record findings.
Auto Trait Implementations§
impl Freeze for ExampleRule
impl RefUnwindSafe for ExampleRule
impl Send for ExampleRule
impl Sync for ExampleRule
impl Unpin for ExampleRule
impl UnsafeUnpin for ExampleRule
impl UnwindSafe for ExampleRule
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