pub trait TagReflection {
// Required methods
fn tag(&self) -> &'static str;
fn description(&self) -> &'static str;
// Provided methods
fn example(&self) -> Option<&'static str> { ... }
fn spec(&self) -> Option<&'static str> { ... }
}Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".