Struct wgpu_test::FailureReason
source · pub struct FailureReason { /* private fields */ }
Expand description
Reason why a test is expected to fail.
If the test fails for a different reason, the given FailureCase will be ignored.
Implementations§
source§impl FailureReason
impl FailureReason
sourcepub fn validation_error() -> Self
pub fn validation_error() -> Self
Match a validation error.
sourcepub fn with_message(self, message: &'static str) -> Self
pub fn with_message(self, message: &'static str) -> Self
Match an error with a message.
If specified, a case-insensitive sub-string test is performed. Allowing
"error occurred"
to match a message like "An unexpected Error occurred!"
.
Trait Implementations§
source§impl Clone for FailureReason
impl Clone for FailureReason
source§fn clone(&self) -> FailureReason
fn clone(&self) -> FailureReason
Returns a copy 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 FailureReason
impl Debug for FailureReason
source§impl Default for FailureReason
impl Default for FailureReason
source§fn default() -> FailureReason
fn default() -> FailureReason
Returns the “default value” for a type. Read more
source§impl PartialEq for FailureReason
impl PartialEq for FailureReason
source§fn eq(&self, other: &FailureReason) -> bool
fn eq(&self, other: &FailureReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FailureReason
Auto Trait Implementations§
impl RefUnwindSafe for FailureReason
impl Send for FailureReason
impl Sync for FailureReason
impl Unpin for FailureReason
impl UnwindSafe for FailureReason
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