pub enum Decider2BQuestion {
Choice {
instructions: String,
options: Vec<Decider2BOption>,
},
Score {
instructions: String,
levels: Vec<String>,
},
Noul {
instructions: String,
true_criterion: String,
false_criterion: String,
},
}Expand description
A decider-2b question. Shapes mirror LayaQuestion deliberately —
Choice: one distribution over options; Score: one distribution over
LEVELS (expected index in .value); Noul: P(true) for the pair of
criteria (the rerank primitive) — but noul carries both sides:
true_criterion / false_criterion render as yes: … / no: …
(bare yes / no when empty), exactly like decider’s own criteria
dict. Options render in label order (no option_order: the reference
layout has no such concept - a caller that wants position de-biasing
permutes the options vec itself before calling).
Variants§
Trait Implementations§
Source§impl Clone for Decider2BQuestion
impl Clone for Decider2BQuestion
Source§impl Debug for Decider2BQuestion
impl Debug for Decider2BQuestion
Source§impl PartialEq for Decider2BQuestion
impl PartialEq for Decider2BQuestion
impl StructuralPartialEq for Decider2BQuestion
Auto Trait Implementations§
impl Freeze for Decider2BQuestion
impl RefUnwindSafe for Decider2BQuestion
impl Send for Decider2BQuestion
impl Sync for Decider2BQuestion
impl Unpin for Decider2BQuestion
impl UnsafeUnpin for Decider2BQuestion
impl UnwindSafe for Decider2BQuestion
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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