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