pub trait KdlSource {
// Required methods
fn parse(&self, source: &[u8]) -> Result<Document, ParseError>;
fn format(&self, doc: &Document) -> Result<Vec<u8>, FormatError>;
}Expand description
Contract for a type that can parse and format .zen source bytes.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".