pub struct UnusedVariableRule;Expand description
未使用变量检查规则
Trait Implementations§
Source§impl Rule for UnusedVariableRule
impl Rule for UnusedVariableRule
Source§fn description(&self) -> String
fn description(&self) -> String
获取规则描述
Source§fn check(
&self,
program: &JsProgram,
meta: &ScriptMetadata,
report: &mut AnalysisReport,
)
fn check( &self, program: &JsProgram, meta: &ScriptMetadata, report: &mut AnalysisReport, )
执行规则检查
Auto Trait Implementations§
impl Freeze for UnusedVariableRule
impl RefUnwindSafe for UnusedVariableRule
impl Send for UnusedVariableRule
impl Sync for UnusedVariableRule
impl Unpin for UnusedVariableRule
impl UnsafeUnpin for UnusedVariableRule
impl UnwindSafe for UnusedVariableRule
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