Skip to main content

ToErrorMessage

Trait ToErrorMessage 

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToErrorMessage for &String

Source§

impl ToErrorMessage for &str

Source§

impl ToErrorMessage for String

Implementors§