pub struct ImmutableBorrowFixGenerator;Expand description
Generates fixes for immutable borrow of mutable value errors
Implementations§
Source§impl ImmutableBorrowFixGenerator
impl ImmutableBorrowFixGenerator
Sourcepub fn new() -> ImmutableBorrowFixGenerator
pub fn new() -> ImmutableBorrowFixGenerator
Creates a new ImmutableBorrowFixGenerator
Trait Implementations§
Source§impl FixGenerator for ImmutableBorrowFixGenerator
impl FixGenerator for ImmutableBorrowFixGenerator
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 ImmutableBorrowFixGenerator
impl RefUnwindSafe for ImmutableBorrowFixGenerator
impl Send for ImmutableBorrowFixGenerator
impl Sync for ImmutableBorrowFixGenerator
impl Unpin for ImmutableBorrowFixGenerator
impl UnwindSafe for ImmutableBorrowFixGenerator
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