pub struct Mismatch {
pub of: &'static str,
pub member: &'static str,
}Expand description
A std declaration that lacks a member a Rust rule reads: std’s sources and the Rust that reads them disagree, a bug in this implementation that the bundled std’s tests hold away.
Fields§
§of: &'static strThe declaration.
member: &'static strThe member it lacks.
Trait Implementations§
impl Copy for Mismatch
impl Eq for Mismatch
Source§impl Error for Mismatch
impl Error for Mismatch
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()
impl StructuralPartialEq for Mismatch
Auto Trait Implementations§
impl Forget for Mismatch
impl Freeze for Mismatch
impl Move for Mismatch
impl RefUnwindSafe for Mismatch
impl Send for Mismatch
impl Sync for Mismatch
impl Unpin for Mismatch
impl UnsafeUnpin for Mismatchwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for Mismatchwhere
&'static str: UnwindSafe,
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