pub trait TomlExample {
// Required methods
fn toml_example() -> String;
fn toml_example_with_prefix(label: &str, prefix: &str) -> String;
// Provided method
fn to_toml_example<P: AsRef<Path>>(file_name: P) -> Result<()> { ... }
}Required Methods§
Sourcefn toml_example() -> String
fn toml_example() -> String
structure to toml example
fn toml_example_with_prefix(label: &str, prefix: &str) -> String
Provided Methods§
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.