pub struct ChoiceAnswer<O: Options> {
pub pick: O,
pub probs: O::Map<Probability>,
pub confidence: Confidence,
}Expand description
The selected option and probability distribution for a static choice.
Use this typed result with ChoiceQ. Use DynChoiceAnswer when option
keys were supplied at runtime.
Fields§
§pick: OUse the selected enum value for ordinary branching.
probs: O::Map<Probability>Use the full distribution when the winning option alone is insufficient.
confidence: ConfidenceUse this confidence to decide whether human review is needed.
Trait Implementations§
impl<O: PartialEq + Options> StructuralPartialEq for ChoiceAnswer<O>
Auto Trait Implementations§
impl<O> Forget for ChoiceAnswer<O>
impl<O> Freeze for ChoiceAnswer<O>
impl<O> Move for ChoiceAnswer<O>
impl<O> RefUnwindSafe for ChoiceAnswer<O>
impl<O> Send for ChoiceAnswer<O>
impl<O> Sync for ChoiceAnswer<O>
impl<O> Unpin for ChoiceAnswer<O>
impl<O> UnsafeUnpin for ChoiceAnswer<O>
impl<O> UnwindSafe for ChoiceAnswer<O>
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