pub struct GenerativeRepair { /* private fields */ }Expand description
Generative repair engine for synthesizing Rust code from HIR
Implementations§
Source§impl GenerativeRepair
impl GenerativeRepair
Sourcepub fn with_config(config: GenerativeRepairConfig) -> Self
pub fn with_config(config: GenerativeRepairConfig) -> Self
Create a new generative repair engine with custom config
Sourcepub fn synthesize(&self, _hir: &HirModule) -> Result<TokenStream>
pub fn synthesize(&self, _hir: &HirModule) -> Result<TokenStream>
Stub implementation when generative feature is disabled
Sourcepub fn config(&self) -> &GenerativeRepairConfig
pub fn config(&self) -> &GenerativeRepairConfig
Get the current configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenerativeRepair
impl RefUnwindSafe for GenerativeRepair
impl Send for GenerativeRepair
impl Sync for GenerativeRepair
impl Unpin for GenerativeRepair
impl UnwindSafe for GenerativeRepair
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