pub struct Criterion {
pub text: String,
pub required: bool,
pub weight: f32,
}Expand description
A single evaluation criterion with optional weight and required flag.
Fields§
§text: String§required: boolIf true, failing this criterion fails the entire evaluation.
weight: f32Relative weight for scoring (default 1.0).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Criterion
impl RefUnwindSafe for Criterion
impl Send for Criterion
impl Sync for Criterion
impl Unpin for Criterion
impl UnsafeUnpin for Criterion
impl UnwindSafe for Criterion
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