pub trait IsSuggestable<'tcx> {
    fn is_suggestable(self, tcx: TyCtxt<'tcx>) -> bool;
}

Required Methods

Whether this makes sense to suggest in a diagnostic.

We filter out certain types and constants since they don’t provide meaningful rendered suggestions when pretty-printed. We leave some nonsense, such as region vars, since those render as '_ and are usually okay to reinterpret as elided lifetimes.

Implementors