Trait toml_example::traits::TomlExample
source · 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§
sourcefn toml_example() -> String
fn toml_example() -> String
structure to toml example
fn toml_field_example(label: &str, prefix: &str) -> String
Provided Methods§
fn to_toml_example(file_name: &str) -> Result<()>
Object Safety§
This trait is not object safe.