pub struct TypeError {
pub message: String,
pub line: usize,
pub col: usize,
pub secondary: Option<TypeErrorSpan>,
}Fields§
§message: String§line: usize§col: usize§secondary: Option<TypeErrorSpan>Optional secondary span for multi-region diagnostics (e.g. declared type vs actual return).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeError
impl RefUnwindSafe for TypeError
impl Send for TypeError
impl Sync for TypeError
impl Unpin for TypeError
impl UnsafeUnpin for TypeError
impl UnwindSafe for TypeError
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