pub struct UnusedImportFixGenerator;
Expand description
Generates fixes for unused import errors
Implementations§
Trait Implementations§
Source§impl Default for UnusedImportFixGenerator
impl Default for UnusedImportFixGenerator
Source§impl FixGenerator for UnusedImportFixGenerator
impl FixGenerator for UnusedImportFixGenerator
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 UnusedImportFixGenerator
impl RefUnwindSafe for UnusedImportFixGenerator
impl Send for UnusedImportFixGenerator
impl Sync for UnusedImportFixGenerator
impl Unpin for UnusedImportFixGenerator
impl UnwindSafe for UnusedImportFixGenerator
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