pub struct DivisionByZeroFixGenerator;
Expand description
Generates fixes for potential division by zero scenarios
Implementations§
Source§impl DivisionByZeroFixGenerator
impl DivisionByZeroFixGenerator
Sourcepub fn new() -> DivisionByZeroFixGenerator
pub fn new() -> DivisionByZeroFixGenerator
Creates a new DivisionByZeroFixGenerator
Trait Implementations§
Source§impl FixGenerator for DivisionByZeroFixGenerator
impl FixGenerator for DivisionByZeroFixGenerator
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 DivisionByZeroFixGenerator
impl RefUnwindSafe for DivisionByZeroFixGenerator
impl Send for DivisionByZeroFixGenerator
impl Sync for DivisionByZeroFixGenerator
impl Unpin for DivisionByZeroFixGenerator
impl UnwindSafe for DivisionByZeroFixGenerator
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