pub trait IssueNarrator {
// Required method
fn describe(
&self,
issue: &ValidationIssue,
location: Option<&str>,
) -> String;
}Expand description
How an issue is put into words.
Implementations match on ValidationIssue::kind, so the compiler forces
every narrator to handle every kind. location is passed in rather than
appended so the wording can place it naturally inside the sentence.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".