pub trait IntoSuggestion {
// Required method
fn into_suggestion(self) -> Suggestion;
}Expand description
Conversion into a Suggestion.
Implemented the same way as IntoMessage: for &str/String, and for
FnOnce() -> impl IntoSuggestion, evaluated lazily only once a report actually exists
to attach it to.
Required Methods§
Sourcefn into_suggestion(self) -> Suggestion
fn into_suggestion(self) -> Suggestion
Convert self into a Suggestion.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".