pub struct DiagnosticEngine { /* private fields */ }Expand description
Engine that runs all registered rules.
Implementations§
Source§impl DiagnosticEngine
impl DiagnosticEngine
pub fn new() -> Self
pub fn add_rule(&mut self, rule: Box<dyn DiagnosticRule>)
pub fn run_all(&self, ctx: &DiagContext<'_>) -> Vec<Diagnostic>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiagnosticEngine
impl !RefUnwindSafe for DiagnosticEngine
impl Send for DiagnosticEngine
impl Sync for DiagnosticEngine
impl Unpin for DiagnosticEngine
impl UnsafeUnpin for DiagnosticEngine
impl !UnwindSafe for DiagnosticEngine
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