pub struct MatchPatternFixGenerator;Expand description
Generates fixes for match arm pattern issues
Implementations§
Source§impl MatchPatternFixGenerator
impl MatchPatternFixGenerator
Sourcepub fn new() -> MatchPatternFixGenerator
pub fn new() -> MatchPatternFixGenerator
Creates a new MatchPatternFixGenerator
Trait Implementations§
Source§impl FixGenerator for MatchPatternFixGenerator
impl FixGenerator for MatchPatternFixGenerator
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 MatchPatternFixGenerator
impl RefUnwindSafe for MatchPatternFixGenerator
impl Send for MatchPatternFixGenerator
impl Sync for MatchPatternFixGenerator
impl Unpin for MatchPatternFixGenerator
impl UnwindSafe for MatchPatternFixGenerator
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