pub struct TypeMismatch<source, left, right, msg> {
pub source: source,
pub left: left,
pub right: right,
pub msg: msg,
}Expand description
Generate an error for incompatible types between a “left” and a “right” values.
Fields§
§source: sourceSpan of the entire error
left: leftLeft expression
right: rightRight expression
msg: msgFurther details on mismatch
Trait Implementations§
Auto Trait Implementations§
impl<source, left, right, msg> Freeze for TypeMismatch<source, left, right, msg>
impl<source, left, right, msg> RefUnwindSafe for TypeMismatch<source, left, right, msg>
impl<source, left, right, msg> Send for TypeMismatch<source, left, right, msg>
impl<source, left, right, msg> Sync for TypeMismatch<source, left, right, msg>
impl<source, left, right, msg> Unpin for TypeMismatch<source, left, right, msg>
impl<source, left, right, msg> UnwindSafe for TypeMismatch<source, left, right, msg>
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