pub trait ToStr {
// Required method
fn to_str<E>(&self) -> &'static str
where E: 'static + ToStr + TryFrom<u32>;
}
Expand description
A trait for converting a program error to a &str
.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.