pub trait ToYamlFragment {
// Required method
fn to_yaml_fragment(
&self,
indent: usize,
line_ending: &str,
) -> Result<String, YamlError>;
}Expand description
Formats a typed value as a YAML fragment for parent-aware insertions.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".