pub struct DiagnosticsRegistry { /* private fields */ }Expand description
Registry for diagnostics providers
Implementations§
Source§impl DiagnosticsRegistry
impl DiagnosticsRegistry
Sourcepub fn register(&mut self, provider: Box<dyn DiagnosticsProvider>)
pub fn register(&mut self, provider: Box<dyn DiagnosticsProvider>)
Register a diagnostics provider
Sourcepub fn get(&self, language: &str) -> Option<&dyn DiagnosticsProvider>
pub fn get(&self, language: &str) -> Option<&dyn DiagnosticsProvider>
Get a diagnostics provider by language
Sourcepub fn has_provider(&self, language: &str) -> bool
pub fn has_provider(&self, language: &str) -> bool
Check if a provider is registered for a language
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiagnosticsRegistry
impl !RefUnwindSafe for DiagnosticsRegistry
impl Send for DiagnosticsRegistry
impl Sync for DiagnosticsRegistry
impl Unpin for DiagnosticsRegistry
impl !UnwindSafe for DiagnosticsRegistry
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