pub enum ExtractionOutcome {
Complete {
hypothesis: Box<RankedSerialHypothesis>,
ranked: Vec<RankedSerialHypothesis>,
evidence: ExtractionEvidence,
},
Ambiguous {
ranked: Vec<RankedSerialHypothesis>,
evidence: ExtractionEvidence,
},
BudgetExhausted {
ranked: Vec<RankedSerialHypothesis>,
evidence: ExtractionEvidence,
},
}Expand description
Public extraction result.
Variants§
Complete
Exactly one strongest hypothesis survived and the search exhausted.
Fields
§
hypothesis: Box<RankedSerialHypothesis>Selected hypothesis.
§
ranked: Vec<RankedSerialHypothesis>Ranked alternatives, including hypothesis as the first entry.
§
evidence: ExtractionEvidenceSearch evidence.
Ambiguous
Multiple plausible hypotheses remain after a complete bounded run.
Fields
§
ranked: Vec<RankedSerialHypothesis>Ranked hypotheses in stable ascending order.
§
evidence: ExtractionEvidenceSearch evidence.
BudgetExhausted
The generic search control stopped the run before exhaustion.
Fields
§
ranked: Vec<RankedSerialHypothesis>Ranked hypotheses found before the bound stopped the run.
§
evidence: ExtractionEvidenceSearch evidence.
Trait Implementations§
Source§impl Clone for ExtractionOutcome
impl Clone for ExtractionOutcome
Source§fn clone(&self) -> ExtractionOutcome
fn clone(&self) -> ExtractionOutcome
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 moreSource§impl Debug for ExtractionOutcome
impl Debug for ExtractionOutcome
impl Eq for ExtractionOutcome
Source§impl PartialEq for ExtractionOutcome
impl PartialEq for ExtractionOutcome
impl StructuralPartialEq for ExtractionOutcome
Auto Trait Implementations§
impl Freeze for ExtractionOutcome
impl RefUnwindSafe for ExtractionOutcome
impl Send for ExtractionOutcome
impl Sync for ExtractionOutcome
impl Unpin for ExtractionOutcome
impl UnsafeUnpin for ExtractionOutcome
impl UnwindSafe for ExtractionOutcome
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