pub struct CodeActionRegistry { /* private fields */ }Expand description
Registry for code action providers
Implementations§
Source§impl CodeActionRegistry
impl CodeActionRegistry
Sourcepub fn register(&mut self, provider: Box<dyn CodeActionProvider>)
pub fn register(&mut self, provider: Box<dyn CodeActionProvider>)
Register a code action provider
Sourcepub fn get(&self, language: &str) -> Option<&dyn CodeActionProvider>
pub fn get(&self, language: &str) -> Option<&dyn CodeActionProvider>
Get a code action 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 CodeActionRegistry
impl !RefUnwindSafe for CodeActionRegistry
impl Send for CodeActionRegistry
impl Sync for CodeActionRegistry
impl Unpin for CodeActionRegistry
impl !UnwindSafe for CodeActionRegistry
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