Contains the error that a parser can return
If you use the verbose-errors
compilation feature,
nom::Err
will be the enum defined here,
otherwise, it will amount to a ErrorKind<E=u32>
.
It can represent a linked list of errors, indicating the path taken in the parsing tree, with corresponding position in the input data.
It depends on P, the input position (for a &u8 parser, it would be a &u8), and E, the custom error type (by default, u32)
An error code, represented by an ErrorKind, which can contain a custom error code represented by E
Convert Err into ErrorKind.
This allows application code to use ErrorKind and stay independent from the verbose-errors features activation.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
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
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more