pub struct TestResult {
pub passed: i32,
pub failed: i32,
pub skipped: i32,
}Fields§
§passed: i32§failed: i32§skipped: i32Implementations§
Source§impl TestResult
impl TestResult
pub fn new() -> Self
pub fn add_passed(&mut self)
pub fn add_failed(&mut self)
pub fn add_skipped(&mut self)
pub fn total(&self) -> i32
pub fn compliance_rate(&self) -> f64
Trait Implementations§
Source§impl Default for TestResult
impl Default for TestResult
Source§fn default() -> TestResult
fn default() -> TestResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TestResult
impl RefUnwindSafe for TestResult
impl Send for TestResult
impl Sync for TestResult
impl Unpin for TestResult
impl UnwindSafe for TestResult
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