pub trait WithMessage {
// Required method
fn message(&self) -> &str;
}Expand description
Represents a trait for types that can provide a message.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl WithMessage for StdAllocationError
Available on crate feature
std only.