pub struct MismatchedTypeFixGenerator;Expand description
Generates fixes for mismatched types errors
Implementations§
Source§impl MismatchedTypeFixGenerator
impl MismatchedTypeFixGenerator
Sourcepub fn new() -> MismatchedTypeFixGenerator
pub fn new() -> MismatchedTypeFixGenerator
Creates a new MismatchedTypeFixGenerator
Trait Implementations§
Source§impl FixGenerator for MismatchedTypeFixGenerator
impl FixGenerator for MismatchedTypeFixGenerator
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 MismatchedTypeFixGenerator
impl RefUnwindSafe for MismatchedTypeFixGenerator
impl Send for MismatchedTypeFixGenerator
impl Sync for MismatchedTypeFixGenerator
impl Unpin for MismatchedTypeFixGenerator
impl UnwindSafe for MismatchedTypeFixGenerator
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