pub trait Loader:
Debug
+ Serialize
+ Deserialize {
// Required method
fn load(
&self,
input: &str,
accept_draft: bool,
) -> Result<Option<Document<Ast>>>;
}Expand description
A loader creates an initial Document from a raw input string loaded from a content file.
Required Methods§
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".