pub trait TomlExample {
    // Required methods
    fn toml_example() -> String;
    fn toml_field_example(label: &str, prefix: &str) -> String;

    // Provided method
    fn to_toml_example(file_name: &str) -> Result<()> { ... }
}

Required Methods§

source

fn toml_example() -> String

structure to toml example

source

fn toml_field_example(label: &str, prefix: &str) -> String

Provided Methods§

source

fn to_toml_example(file_name: &str) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§