pub enum AnswerValue {
Choice(String),
Score(f32),
Noul(bool),
}Expand description
The decided value of one Question, shaped to match it.
Variants§
Choice(String)
The criterion chosen — one of Question::Choice’s keys.
Score(f32)
The score decided, on Question::Score’s scale.
Noul(bool)
The yes/no verdict for a Question::Noul.
Trait Implementations§
Source§impl Clone for AnswerValue
impl Clone for AnswerValue
Source§impl Debug for AnswerValue
impl Debug for AnswerValue
Source§impl PartialEq for AnswerValue
impl PartialEq for AnswerValue
impl StructuralPartialEq for AnswerValue
Auto Trait Implementations§
impl Freeze for AnswerValue
impl RefUnwindSafe for AnswerValue
impl Send for AnswerValue
impl Sync for AnswerValue
impl Unpin for AnswerValue
impl UnsafeUnpin for AnswerValue
impl UnwindSafe for AnswerValue
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