pub struct AstTraitImplementationFixGenerator;
Expand description
Generates trait implementations using AST-based code generation with the quote crate
Implementations§
Trait Implementations§
Source§impl FixGenerator for AstTraitImplementationFixGenerator
impl FixGenerator for AstTraitImplementationFixGenerator
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 AstTraitImplementationFixGenerator
impl RefUnwindSafe for AstTraitImplementationFixGenerator
impl Send for AstTraitImplementationFixGenerator
impl Sync for AstTraitImplementationFixGenerator
impl Unpin for AstTraitImplementationFixGenerator
impl UnwindSafe for AstTraitImplementationFixGenerator
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