pub struct PythonCodeActionAdapter { /* private fields */ }Expand description
Adapter for Python code actions provider
Implementations§
Source§impl PythonCodeActionAdapter
impl PythonCodeActionAdapter
Sourcepub fn with_config(config: LanguageConfig) -> Self
pub fn with_config(config: LanguageConfig) -> Self
Create with configuration
Trait Implementations§
Source§impl CodeActionProvider for PythonCodeActionAdapter
impl CodeActionProvider for PythonCodeActionAdapter
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 PythonCodeActionAdapter
impl RefUnwindSafe for PythonCodeActionAdapter
impl Send for PythonCodeActionAdapter
impl Sync for PythonCodeActionAdapter
impl Unpin for PythonCodeActionAdapter
impl UnwindSafe for PythonCodeActionAdapter
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