pub trait SerializeYaml: Serialize {
// Provided methods
fn to_yaml_string(&self) -> Result<String, Error> { ... }
fn to_yaml_vec(&self) -> Result<Vec<u8>, Error> { ... }
}
Provided Methods§
fn to_yaml_string(&self) -> Result<String, Error>
fn to_yaml_vec(&self) -> Result<Vec<u8>, 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.