Struct selene_lib::rules::if_same_then_else::IfSameThenElseLint
source · [−]pub struct IfSameThenElseLint;
Trait Implementations
sourceimpl Rule for IfSameThenElseLint
impl Rule for IfSameThenElseLint
type Config = ()
type Error = Infallible
fn new(_: Self::Config) -> Result<Self, Self::Error>
fn pass(&self, ast: &Ast, _: &Context) -> Vec<Diagnostic>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
fn severity(&self) -> Severity
fn rule_type(&self) -> RuleType
Auto Trait Implementations
impl RefUnwindSafe for IfSameThenElseLint
impl Send for IfSameThenElseLint
impl Sync for IfSameThenElseLint
impl Unpin for IfSameThenElseLint
impl UnwindSafe for IfSameThenElseLint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more