Converts the error into a collection of diagnostic issues. The primary error is inserted at the front of the secondary diagnostics, creating a single collection containing all diagnostic information. # Examples ``` use hashql_diagnostics::{Diagnostic, DiagnosticIssues, Failure, Label, Severity}; # use hashql_diagnostics::category::TerminalDiagnosticCategory; # const ERROR_CATEGORY: TerminalDiag
(mut self)
| 250 | /// ); |
| 251 | /// ``` |
| 252 | pub fn into_issues(mut self) -> DiagnosticIssues<C, S> { |
| 253 | self.secondary.insert_front(self.primary.generalize()); |
| 254 | self.secondary |
| 255 | } |
| 256 | |
| 257 | /// Converts to a result with type-erased diagnostic categories. |
| 258 | /// |