pub trait JsonSave{
// Provided methods
fn preamble() -> Option<String> { ... }
fn maybe_create_dfl<P: AsRef<Path>>(path_in: P) -> Result<bool> { ... }
fn as_json(&self) -> Result<String> { ... }
fn save<P: AsRef<Path>>(&self, path: P) -> Result<()> { ... }
}
Provided Methods§
fn preamble() -> Option<String>
fn maybe_create_dfl<P: AsRef<Path>>(path_in: P) -> Result<bool>
fn as_json(&self) -> Result<String>
fn save<P: AsRef<Path>>(&self, path: 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.