Struct konst::parsing::ParseError[][src]

pub struct ParseError<'a> { /* fields omitted */ }
This is supported on crate feature parsing_no_proc only.
Expand description

Error returned by all parsing methods that return Result.

This error type knows where the error happened, in what direction the bytes were being parsed, and the kind of error that happened.

Implementations

Constructs a ParseError.

A const fn equivalent of a clone method.

Gets the byte offset of this error in the parsed bytes that the Parser was constructed from.

The direction that this error happened from, either from the start or the end.

The kind of parsing error that this is.

For erroring with an error message, this is called by the unwrap_ctx macro.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.