pub enum AnyDiagnostic {
CyclicImport(CyclicImport),
ImportFailed(ImportFailed),
InvalidToken(InvalidToken),
UnexpectedEof(UnexpectedEof),
UnexpectedToken(UnexpectedToken),
UserError(UserError),
UndeclaredType(UndeclaredType),
DuplicatePolyType(DuplicatePolyType),
}
Variants§
CyclicImport(CyclicImport)
ImportFailed(ImportFailed)
InvalidToken(InvalidToken)
UnexpectedEof(UnexpectedEof)
UnexpectedToken(UnexpectedToken)
UserError(UserError)
UndeclaredType(UndeclaredType)
DuplicatePolyType(DuplicatePolyType)
Implementations§
Source§impl AnyDiagnostic
impl AnyDiagnostic
pub fn from_parse_error( file: FileId, e: &ParseError<usize, Token<'_>, &'static str>, ) -> Self
Trait Implementations§
Source§impl Diagnostic for AnyDiagnostic
impl Diagnostic for AnyDiagnostic
fn to_codespan(&self, ctx: &Context) -> Diagnostic<FileId>
Auto Trait Implementations§
impl Freeze for AnyDiagnostic
impl !RefUnwindSafe for AnyDiagnostic
impl Send for AnyDiagnostic
impl Sync for AnyDiagnostic
impl Unpin for AnyDiagnostic
impl !UnwindSafe for AnyDiagnostic
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