Expand description
Auto-generated module
🤖 Generated with SplitRS
Re-exports§
pub use crate::error_impl::ParseError;pub use crate::error_impl::ParseErrorKind;pub use crate::tokens::Span;
Traits§
- Parse
Error Factory - Extension trait providing factory methods on
ParseError.
Functions§
- dedup_
errors - Deduplicates errors by (code, span_start) key.
- detect_
common_ mistakes - Check if source contains common error patterns.
- error_
density - Compute an “error density” metric: errors per 100 lines.
- error_
kind_ label - Return a short label for a
ParseErrorKind. - error_
summary - Converts a vector of errors to a short summary string.
- errors_
only - Filters diagnostics to only include hard errors.
- errors_
within_ budget - Checks if a collection of errors is below a threshold.
- filter_
by_ severity - Filters a list of diagnostics by severity.
- format_
caret - Formats a caret pointer under a line at
col. - format_
error_ at - Formats an error at a given source position.
- format_
error_ json - An error formatter that outputs machine-readable JSON-like text.
- format_
error_ table - Format all errors as a table.
- format_
error_ unix - An error formatter that outputs UNIX-style error messages.
- sort_
errors_ by_ severity - Sorts errors by severity (most severe first), then by position.
- try_
collect - A “try” wrapper: runs a fallible operation, collecting any errors.
- warnings_
only - Filters diagnostics to only include warnings.
- write_
error_ report - Writes a batch of errors to a formatted report string.
Type Aliases§
- Parse
Result - Convenience alias for results that may fail with a
ParseError.