pub struct DefaultCodeActionsEngine;Expand description
Default code actions engine implementation
Implementations§
Trait Implementations§
Source§impl CodeActionsEngine for DefaultCodeActionsEngine
impl CodeActionsEngine for DefaultCodeActionsEngine
Source§fn suggest_code_actions(
&self,
diagnostic: &Diagnostic,
code: &str,
) -> CodeActionsResult<Vec<CodeAction>>
fn suggest_code_actions( &self, diagnostic: &Diagnostic, code: &str, ) -> CodeActionsResult<Vec<CodeAction>>
Suggest code actions for a diagnostic
Source§fn apply_code_action(
&self,
code: &str,
action: &CodeAction,
) -> CodeActionsResult<String>
fn apply_code_action( &self, code: &str, action: &CodeAction, ) -> CodeActionsResult<String>
Apply a code action to code
Auto Trait Implementations§
impl Freeze for DefaultCodeActionsEngine
impl RefUnwindSafe for DefaultCodeActionsEngine
impl Send for DefaultCodeActionsEngine
impl Sync for DefaultCodeActionsEngine
impl Unpin for DefaultCodeActionsEngine
impl UnwindSafe for DefaultCodeActionsEngine
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