pub struct EquationResult {
pub name: String,
pub passed: bool,
pub expected: f64,
pub actual: f64,
pub tolerance: f64,
pub difference: f64,
pub relative_difference: f64,
pub message: String,
}Expand description
Result of an equation verification
Fields§
§name: StringName of the equation
passed: boolWhether the equation holds within tolerance
expected: f64Expected value
actual: f64Actual value
tolerance: f64Tolerance used
difference: f64Absolute difference
relative_difference: f64Relative difference (percentage)
message: StringDiagnostic message
Trait Implementations§
Source§impl Clone for EquationResult
impl Clone for EquationResult
Source§fn clone(&self) -> EquationResult
fn clone(&self) -> EquationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EquationResult
impl Debug for EquationResult
Auto Trait Implementations§
impl Freeze for EquationResult
impl RefUnwindSafe for EquationResult
impl Send for EquationResult
impl Sync for EquationResult
impl Unpin for EquationResult
impl UnsafeUnpin for EquationResult
impl UnwindSafe for EquationResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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