pub struct SoftAssertionError {
pub failures: Vec<String>,
pub count: usize,
}Expand description
Error type for soft assertion failures
Fields§
§failures: Vec<String>All failure messages
count: usizeNumber of failed assertions
Implementations§
Source§impl SoftAssertionError
impl SoftAssertionError
Sourcepub fn new(failures: &[AssertionFailure]) -> Self
pub fn new(failures: &[AssertionFailure]) -> Self
Create a new error from failures
Trait Implementations§
Source§impl Clone for SoftAssertionError
impl Clone for SoftAssertionError
Source§fn clone(&self) -> SoftAssertionError
fn clone(&self) -> SoftAssertionError
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 SoftAssertionError
impl Debug for SoftAssertionError
Source§impl Display for SoftAssertionError
impl Display for SoftAssertionError
Source§impl Error for SoftAssertionError
impl Error for SoftAssertionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SoftAssertionError
impl RefUnwindSafe for SoftAssertionError
impl Send for SoftAssertionError
impl Sync for SoftAssertionError
impl Unpin for SoftAssertionError
impl UnsafeUnpin for SoftAssertionError
impl UnwindSafe for SoftAssertionError
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