pub struct AstUnusedCodeFixGenerator;
Expand description
Generates fixes for unused code using AST analysis
Implementations§
Trait Implementations§
Source§impl FixGenerator for AstUnusedCodeFixGenerator
impl FixGenerator for AstUnusedCodeFixGenerator
Source§fn generate_fix(
&self,
error: &DecrustError,
params: &ExtractedParameters,
_source_code_context: Option<&str>,
) -> Option<Autocorrection>
fn generate_fix( &self, error: &DecrustError, params: &ExtractedParameters, _source_code_context: Option<&str>, ) -> Option<Autocorrection>
Generates a fix for an error using extracted parameters
Auto Trait Implementations§
impl Freeze for AstUnusedCodeFixGenerator
impl RefUnwindSafe for AstUnusedCodeFixGenerator
impl Send for AstUnusedCodeFixGenerator
impl Sync for AstUnusedCodeFixGenerator
impl Unpin for AstUnusedCodeFixGenerator
impl UnwindSafe for AstUnusedCodeFixGenerator
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