pub struct RefineOutcome {
pub text: String,
pub iterations_run: u8,
pub final_score: f32,
pub converged_clean: bool,
}Expand description
Outcome of one refine pass: the final flattened text, the iterations
that ran, and the final composite score. Returned by
crate::DocumentPlan::render_refined.
Fields§
§text: String§iterations_run: u8§final_score: f32§converged_clean: booltrue when the loop terminated because diagnoses were empty
(the structural happy path). false when it stopped via one of
the other termination conditions.
Trait Implementations§
Source§impl Clone for RefineOutcome
impl Clone for RefineOutcome
Source§fn clone(&self) -> RefineOutcome
fn clone(&self) -> RefineOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RefineOutcome
impl RefUnwindSafe for RefineOutcome
impl Send for RefineOutcome
impl Sync for RefineOutcome
impl Unpin for RefineOutcome
impl UnsafeUnpin for RefineOutcome
impl UnwindSafe for RefineOutcome
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