pub trait TomlInput: Serialize + Sized {
// Required methods
fn schema() -> Result<Schema, Error>;
fn into_value(self) -> Result<Value, Error>;
// Provided methods
fn schema_to_string() -> Result<String, Error> { ... }
fn into_string(self) -> Result<String, Error> { ... }
}Required Methods§
Provided Methods§
fn schema_to_string() -> Result<String, Error>
fn into_string(self) -> Result<String, Error>
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.