MCPcopy Create free account
hub / github.com/hashintel/hash / into_issues

Method into_issues

libs/@local/hashql/diagnostics/src/status.rs:252–255  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 ///

Calls 2

insert_frontMethod · 0.45
generalizeMethod · 0.45