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.