pub trait RustDoc {
// Required method
fn rust_doc() -> &'static str;
}Expand description
Trait for types that can provide Rust documentation.
Use derive(RustDoc) to automatically implement this trait for types that have a static string documentation.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".