Skip to main content

RustDoc

Trait RustDoc 

Source
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§

Source

fn rust_doc() -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§