pub struct RuntimePanicFixGenerator;
Expand description
Generates fixes for common runtime panic scenarios
Implementations§
Trait Implementations§
Source§impl FixGenerator for RuntimePanicFixGenerator
impl FixGenerator for RuntimePanicFixGenerator
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 RuntimePanicFixGenerator
impl RefUnwindSafe for RuntimePanicFixGenerator
impl Send for RuntimePanicFixGenerator
impl Sync for RuntimePanicFixGenerator
impl Unpin for RuntimePanicFixGenerator
impl UnwindSafe for RuntimePanicFixGenerator
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