Trait ConfigDocs

Source
pub trait ConfigDocs {
    // Required method
    fn config_docs() -> &'static [(&'static str, &'static str)];
}
Expand description

Trait that allows for documentation printing

Required Methods§

Source

fn config_docs() -> &'static [(&'static str, &'static str)]

Returns the fields in your struct with their assiciated documentation

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.

Implementations on Foreign Types§

Source§

impl ConfigDocs for &str

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for f32

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for f64

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for i8

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for i16

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for i32

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for i64

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for i128

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for isize

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for u8

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for u16

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for u32

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for u64

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for u128

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for usize

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Source§

impl ConfigDocs for String

Source§

fn config_docs() -> &'static [(&'static str, &'static str)]

Implementors§