pub struct SchemaLinter { /* private fields */ }Expand description
Schema linter for SymbolTable definitions.
Runs configurable checks against a SymbolTable and collects
all lint issues into a LintResult.
Implementations§
Source§impl SchemaLinter
impl SchemaLinter
Sourcepub fn new(config: LinterConfig) -> Self
pub fn new(config: LinterConfig) -> Self
Create a linter with the given configuration.
Sourcepub fn with_all_rules() -> Self
pub fn with_all_rules() -> Self
Create a linter with all rules enabled.
Sourcepub fn lint(&self, table: &SymbolTable) -> LintResult
pub fn lint(&self, table: &SymbolTable) -> LintResult
Lint a SymbolTable and return all issues found.
Auto Trait Implementations§
impl Freeze for SchemaLinter
impl RefUnwindSafe for SchemaLinter
impl Send for SchemaLinter
impl Sync for SchemaLinter
impl Unpin for SchemaLinter
impl UnsafeUnpin for SchemaLinter
impl UnwindSafe for SchemaLinter
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