pub struct ReturnLocalReferenceFixGenerator;Expand description
Generates fixes for returning local references (E0515)
Implementations§
Source§impl ReturnLocalReferenceFixGenerator
impl ReturnLocalReferenceFixGenerator
Sourcepub fn new() -> ReturnLocalReferenceFixGenerator
pub fn new() -> ReturnLocalReferenceFixGenerator
Creates a new ReturnLocalReferenceFixGenerator
Trait Implementations§
Source§impl FixGenerator for ReturnLocalReferenceFixGenerator
impl FixGenerator for ReturnLocalReferenceFixGenerator
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 ReturnLocalReferenceFixGenerator
impl RefUnwindSafe for ReturnLocalReferenceFixGenerator
impl Send for ReturnLocalReferenceFixGenerator
impl Sync for ReturnLocalReferenceFixGenerator
impl Unpin for ReturnLocalReferenceFixGenerator
impl UnwindSafe for ReturnLocalReferenceFixGenerator
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