pub(crate) trait Payload {
// Required methods
fn line_ending(&self) -> LineEndingSpec;
fn reconcile(&self, source: &Source<'_>) -> Result<Vec<u8>, DocumentError>;
fn validate(&self) -> Result<(), DocumentError>;
}Expand description
What every kind of document declares and does.
Required Methods§
Sourcefn line_ending(&self) -> LineEndingSpec
fn line_ending(&self) -> LineEndingSpec
The line ending of the written document.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".