pub struct UnsafeUnwrapFixGenerator;
Expand description
Generates fixes for unsafe unwrap() and expect() calls
Implementations§
Trait Implementations§
Source§impl FixGenerator for UnsafeUnwrapFixGenerator
impl FixGenerator for UnsafeUnwrapFixGenerator
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 UnsafeUnwrapFixGenerator
impl RefUnwindSafe for UnsafeUnwrapFixGenerator
impl Send for UnsafeUnwrapFixGenerator
impl Sync for UnsafeUnwrapFixGenerator
impl Unpin for UnsafeUnwrapFixGenerator
impl UnwindSafe for UnsafeUnwrapFixGenerator
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