pub fn parse_error(
input: &str,
offset: usize,
context: impl Into<String>,
) -> ErrorExpand description
Create a parse error with truncated input snippet (max 50 chars).
The snippet is limited to 50 characters to keep error messages manageable.
ยงParameters
input: The input string being parsedoffset: Byte offset where the error occurredcontext: Description of what was expected