Documented

Trait Documented 

Source
pub trait Documented {
    const DOCS: &'static str;
}
Expand description

Adds an associated constant DOCS on your type containing its documentation, allowing you to access its documentation at runtime.

The associated derive macro of this trait will error if the type does not have any doc comments. Use DocumentedOpt if this is undesirable.

For how to use the derive macro, see Documented.

Required Associated Constants§

Source

const DOCS: &'static str

The static doc comments on this type.

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.

Implementors§