Module hint

Module hint 

Source
Expand description

Facility for error-hinting

ModulesΒ§

seal πŸ”’
non-public module, to implement a β€œsealed” trait.

MacrosΒ§

hintable_impl πŸ”’
Declare one or more error types as having hints.

TraitsΒ§

HintableError
An error that can provide additional information about how to solve itself.
HintableErrorImpl πŸ”’
Trait for an error that can provide a hint directly.

FunctionsΒ§

best_hint πŸ”’
Return the best hint possible from err, by looking for the first error in the chain defined by err and its sources that provides a value for HintableErrorImpl::hint.
downcast_to_hintable_impl πŸ”’
If possible, downcast this StdError to one of the implementations of HintableErrorImpl.