pub struct RustCodeActionAdapter { /* private fields */ }Expand description
Adapter for Rust code actions provider
Implementations§
Source§impl RustCodeActionAdapter
impl RustCodeActionAdapter
Sourcepub fn with_config(config: LanguageConfig) -> Self
pub fn with_config(config: LanguageConfig) -> Self
Create with configuration
Trait Implementations§
Source§impl CodeActionProvider for RustCodeActionAdapter
impl CodeActionProvider for RustCodeActionAdapter
Source§fn suggest_actions(
&self,
_diagnostic: &Diagnostic,
_code: &str,
) -> ProviderResult<Vec<String>>
fn suggest_actions( &self, _diagnostic: &Diagnostic, _code: &str, ) -> ProviderResult<Vec<String>>
Suggest code actions for a diagnostic
Source§fn apply_action(&self, code: &str, _action: &str) -> ProviderResult<String>
fn apply_action(&self, code: &str, _action: &str) -> ProviderResult<String>
Apply a code action to code
Source§fn config(&self) -> Option<&LanguageConfig>
fn config(&self) -> Option<&LanguageConfig>
Get the configuration for this provider
Auto Trait Implementations§
impl Freeze for RustCodeActionAdapter
impl RefUnwindSafe for RustCodeActionAdapter
impl Send for RustCodeActionAdapter
impl Sync for RustCodeActionAdapter
impl Unpin for RustCodeActionAdapter
impl UnwindSafe for RustCodeActionAdapter
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