Struct unexpected::Mismatch [−][src]
pub struct Mismatch<T> { pub expected: T, pub found: T, }
Error indicating an expected value was not found.
Fields
expected: T
Value expected.
found: T
Value found.
Trait Implementations
impl<T: Debug> Debug for Mismatch<T>
[src]
impl<T: Debug> Debug for Mismatch<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for Mismatch<T>
[src]
impl<T: PartialEq> PartialEq for Mismatch<T>
fn eq(&self, other: &Mismatch<T>) -> bool
[src]
fn eq(&self, other: &Mismatch<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Mismatch<T>) -> bool
[src]
fn ne(&self, other: &Mismatch<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for Mismatch<T>
[src]
impl<T: Eq> Eq for Mismatch<T>
impl<T: Clone> Clone for Mismatch<T>
[src]
impl<T: Clone> Clone for Mismatch<T>
fn clone(&self) -> Mismatch<T>
[src]
fn clone(&self) -> Mismatch<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Copy> Copy for Mismatch<T>
[src]
impl<T: Copy> Copy for Mismatch<T>
impl<T: Display> Display for Mismatch<T>
[src]
impl<T: Display> Display for Mismatch<T>