pub struct StochasticCase {
pub name: String,
pub success_rate: f64,
}Expand description
A case that succeeds with a configurable probability (for testing statistics).
Fields§
§name: StringShort identifier for this case.
success_rate: f64Probability of success per trial (0.0-1.0).
Implementations§
Trait Implementations§
Source§impl EvaluationCase for StochasticCase
impl EvaluationCase for StochasticCase
Auto Trait Implementations§
impl Freeze for StochasticCase
impl RefUnwindSafe for StochasticCase
impl Send for StochasticCase
impl Sync for StochasticCase
impl Unpin for StochasticCase
impl UnsafeUnpin for StochasticCase
impl UnwindSafe for StochasticCase
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