pub fn to_string(
frontmatter: &Frontmatter,
format: Format,
) -> Result<String, FrontmatterError>Expand description
Converts a Frontmatter object to a string representation in the specified format.
Performs optimised serialisation with pre-allocated buffers where possible.
§Arguments
frontmatter- Reference to theFrontmatterobject to serialiseformat- The target format for serialisation
§Returns
A Result containing the serialised string or a FrontmatterError