Skip to main content

WithMessage

Trait WithMessage 

Source
pub trait WithMessage {
    // Required method
    fn message(&self) -> &str;
}
Expand description

Represents a trait for types that can provide a message.

Required Methods§

Source

fn message(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl WithMessage for StdAllocationError

Available on crate feature std only.