pub struct ValidationCase {
pub name: String,
pub domain: DomainType,
pub function: String,
pub params: Vec<(String, ParameterValue)>,
pub expected: f64,
pub tolerance: f64,
pub source: String,
}Expand description
Unit validation case comparing a computed result to a reference value.
Fields§
§name: StringName of the validation case.
domain: DomainTypeTarget scientific domain.
function: StringName of the tested function.
params: Vec<(String, ParameterValue)>Input parameters.
expected: f64Expected reference value.
tolerance: f64Accepted relative tolerance.
source: StringSource of the reference value.
Implementations§
Trait Implementations§
Source§impl Clone for ValidationCase
impl Clone for ValidationCase
Source§fn clone(&self) -> ValidationCase
fn clone(&self) -> ValidationCase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ValidationCase
impl RefUnwindSafe for ValidationCase
impl Send for ValidationCase
impl Sync for ValidationCase
impl Unpin for ValidationCase
impl UnsafeUnpin for ValidationCase
impl UnwindSafe for ValidationCase
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