pub trait ToErrorMessage {
// Required method
fn to_error_message(self) -> String;
}Expand description
Trait that lets error-constructors accept either &str, String, or Value.
Required Methods§
fn to_error_message(self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".