pub enum FailureKind {
Other,
StringEq,
}Expand description
Discriminator for how a failure should be rendered. The string-eq
path needs a multi-line block (escaped values, byte counts, first
differing offset); other failures keep the historical single-line
expected E, got A shape.
Variants§
Trait Implementations§
Source§impl Clone for FailureKind
impl Clone for FailureKind
Source§fn clone(&self) -> FailureKind
fn clone(&self) -> FailureKind
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 moreSource§impl Debug for FailureKind
impl Debug for FailureKind
Source§impl Default for FailureKind
impl Default for FailureKind
Source§fn default() -> FailureKind
fn default() -> FailureKind
Returns the “default value” for a type. Read more
Source§impl PartialEq for FailureKind
impl PartialEq for FailureKind
Source§fn eq(&self, other: &FailureKind) -> bool
fn eq(&self, other: &FailureKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FailureKind
impl Eq for FailureKind
impl StructuralPartialEq for FailureKind
Auto Trait Implementations§
impl Freeze for FailureKind
impl RefUnwindSafe for FailureKind
impl Send for FailureKind
impl Sync for FailureKind
impl Unpin for FailureKind
impl UnsafeUnpin for FailureKind
impl UnwindSafe for FailureKind
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