pub trait Labeled: ResourceType {
// Required method
fn label(&self) -> &str;
// Provided method
fn error_ident(&self) -> ResourceErrorIdent { ... }
}
Required Methods§
Provided Methods§
fn error_ident(&self) -> ResourceErrorIdent
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.