Skip to main content

IntoSuggestion

Trait IntoSuggestion 

Source
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§

Source

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".

Implementations on Foreign Types§

Source§

impl IntoSuggestion for &str

Source§

impl IntoSuggestion for String

Implementors§

Source§

impl<F, S> IntoSuggestion for F
where F: FnOnce() -> S, S: IntoSuggestion,