pub type WithSuggestion<F = OneLine, Sep = NewLine> = WithSep<F, Sep, Suggestion>;Expand description
A helper type to combine an error format strategy F with a suggestion, separated by Sep.
Used by MainResultWithSuggestion to render the error and suggestion together.
F defaults to OneLine and Sep defaults to a newline, but you can customize both to achieve different layouts.
Equivalent to WithSep<F, Sep, Suggestion>.
If Suggestion::fmt produces an empty string, the separator is still printed.
Aliased Typeยง
pub struct WithSuggestion<F = OneLine, Sep = NewLine>(/* private fields */);