Skip to main content

Module errors

Module errors 

Source
Expand description

Errors spanned to the user’s code, for a Conventions impl to report a name that does not fit.

Structs§

Errors
Errors collected while going through a derive’s input (e.g. one per malformed field), so all of them are reported rather than only the first.

Functions§

abort
Wraps a message with a helper hint with a syn::Error.
abort_call_site
Wrapper over abort with call site hygiene.
abort_spanned
Span the given syntax tree over a syn::Error.
both
Both values, or the errors of every one that failed (in order).
message
Properly format a the error message (msg) and the suggested fix (help)