pub struct RuleChecker { /* private fields */ }Implementations§
Source§impl RuleChecker
impl RuleChecker
Sourcepub fn check_explicit_duration(
&self,
line_number: usize,
context: &str,
) -> Option<RuleMessage>
pub fn check_explicit_duration( &self, line_number: usize, context: &str, ) -> Option<RuleMessage>
Check if explicit durations are required
Sourcepub fn check_deprecated_syntax(
&self,
line_number: usize,
old_syntax: &str,
new_syntax: &str,
) -> Option<RuleMessage>
pub fn check_deprecated_syntax( &self, line_number: usize, old_syntax: &str, new_syntax: &str, ) -> Option<RuleMessage>
Check if deprecated syntax is used
Sourcepub fn check_var_keyword(&self, line_number: usize) -> Option<RuleMessage>
pub fn check_var_keyword(&self, line_number: usize) -> Option<RuleMessage>
Check if ‘var’ keyword is used
Sourcepub fn check_missing_duration(
&self,
line_number: usize,
element: &str,
) -> Option<RuleMessage>
pub fn check_missing_duration( &self, line_number: usize, element: &str, ) -> Option<RuleMessage>
Check for missing duration
Sourcepub fn check_implicit_conversion(
&self,
line_number: usize,
from_type: &str,
to_type: &str,
) -> Option<RuleMessage>
pub fn check_implicit_conversion( &self, line_number: usize, from_type: &str, to_type: &str, ) -> Option<RuleMessage>
Check for implicit type conversion
Sourcepub fn check_unused_variable(
&self,
line_number: usize,
var_name: &str,
) -> Option<RuleMessage>
pub fn check_unused_variable( &self, line_number: usize, var_name: &str, ) -> Option<RuleMessage>
Check for unused variables
Auto Trait Implementations§
impl Freeze for RuleChecker
impl RefUnwindSafe for RuleChecker
impl Send for RuleChecker
impl Sync for RuleChecker
impl Unpin for RuleChecker
impl UnwindSafe for RuleChecker
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more