A lib help generate toml example
This crate provides the TomlExample
trait and an accompanying derive macro.
Deriving TomlExample
on a struct will provide to_example
function help generate toml example file base documentation
```rust use toml_example::TomlExample;
/// Config is to arrange something or change the controls on a computer or other device /// so that it can be used in a particular way
struct Config {
/// Config.a should be a number
a: usize,
/// Config.b should be a string
b: String,
/// Optional Config.c is a number
c: Option
Config::totomlexample("example.toml"); // write example to a file let example = Config::toml_example(); ```
Toml example base on the doc string of each field ```toml
a = 0
b = ""
e = 7
f = "default" ```