pub struct ClosureCaptureLifetimeFixGenerator;
Expand description
Generates fixes for closure capture lifetime errors (E0373)
Implementations§
Trait Implementations§
Source§impl FixGenerator for ClosureCaptureLifetimeFixGenerator
impl FixGenerator for ClosureCaptureLifetimeFixGenerator
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 ClosureCaptureLifetimeFixGenerator
impl RefUnwindSafe for ClosureCaptureLifetimeFixGenerator
impl Send for ClosureCaptureLifetimeFixGenerator
impl Sync for ClosureCaptureLifetimeFixGenerator
impl Unpin for ClosureCaptureLifetimeFixGenerator
impl UnwindSafe for ClosureCaptureLifetimeFixGenerator
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