pub struct CompilerFixer { /* private fields */ }Expand description
Compiler error fixer Compiler error fixer
This struct handles parsing and fixing compilation errors from cargo check output. It can parse both JSON and text output formats and convert them into structured Diagnostic objects that can be used by the healing system.
Implementations§
Source§impl CompilerFixer
impl CompilerFixer
Sourcepub fn parse_diagnostics(&self, output: &str) -> Vec<Diagnostic>
pub fn parse_diagnostics(&self, output: &str) -> Vec<Diagnostic>
Sourcepub async fn check(&self) -> Result<Vec<Diagnostic>>
pub async fn check(&self) -> Result<Vec<Diagnostic>>
Run cargo check and get diagnostics
Auto Trait Implementations§
impl Freeze for CompilerFixer
impl RefUnwindSafe for CompilerFixer
impl Send for CompilerFixer
impl Sync for CompilerFixer
impl Unpin for CompilerFixer
impl UnsafeUnpin for CompilerFixer
impl UnwindSafe for CompilerFixer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more