TomlExample

Trait TomlExample 

Source
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§

Source

fn toml_example() -> String

structure to toml example

Source

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

Provided Methods§

Source

fn to_toml_example<P: AsRef<Path>>(file_name: P) -> Result<()>

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.

Implementors§