Struct ra_ap_hir::diagnostics::TypeMismatch
source · pub struct TypeMismatch {
pub expr_or_pat: InFile<AstPtr<Either<Expr, Pat>>>,
pub expected: Type,
pub actual: Type,
}
Fields§
§expr_or_pat: InFile<AstPtr<Either<Expr, Pat>>>
§expected: Type
§actual: Type
Trait Implementations§
source§impl Debug for TypeMismatch
impl Debug for TypeMismatch
source§impl From<TypeMismatch> for AnyDiagnostic
impl From<TypeMismatch> for AnyDiagnostic
source§fn from(d: TypeMismatch) -> AnyDiagnostic
fn from(d: TypeMismatch) -> AnyDiagnostic
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TypeMismatch
impl RefUnwindSafe for TypeMismatch
impl Send for TypeMismatch
impl Sync for TypeMismatch
impl Unpin for TypeMismatch
impl UnwindSafe for TypeMismatch
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
source§impl<T> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.