Struct selene_lib::lints::empty_loop::EmptyLoopLint
source · pub struct EmptyLoopLint { /* private fields */ }
Trait Implementations§
source§impl Lint for EmptyLoopLint
impl Lint for EmptyLoopLint
type Config = EmptyLoopLintConfig
type Error = Infallible
const SEVERITY: Severity = Severity::Warning
const LINT_TYPE: LintType = LintType::Style
fn new(config: Self::Config) -> Result<Self, Self::Error>
fn pass(&self, ast: &Ast, _: &Context, _: &AstContext) -> Vec<Diagnostic>
Auto Trait Implementations§
impl Freeze for EmptyLoopLint
impl RefUnwindSafe for EmptyLoopLint
impl Send for EmptyLoopLint
impl Sync for EmptyLoopLint
impl Unpin for EmptyLoopLint
impl UnwindSafe for EmptyLoopLint
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