pub struct MissingOkErrFixGenerator;
Expand description
Generates fixes for incomplete match arms when handling Result types
Implementations§
Trait Implementations§
Source§impl FixGenerator for MissingOkErrFixGenerator
impl FixGenerator for MissingOkErrFixGenerator
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 MissingOkErrFixGenerator
impl RefUnwindSafe for MissingOkErrFixGenerator
impl Send for MissingOkErrFixGenerator
impl Sync for MissingOkErrFixGenerator
impl Unpin for MissingOkErrFixGenerator
impl UnwindSafe for MissingOkErrFixGenerator
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