Trait cdoc::loader::Loader

source ·
pub trait Loader: Debug + Serialize + Deserialize {
    // Required method
    fn load(&self, input: &str) -> Result<Document<Ast>>;
}
Expand description

A loader creates an initial Document from a raw input string loaded from a content file.

Required Methods§

source

fn load(&self, input: &str) -> Result<Document<Ast>>

Perform any parsing/conversion necessary.

Trait Implementations§

source§

impl<'typetag> Serialize for dyn Loader + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn Loader + Send + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn Loader + Send + Sync + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn Loader + Sync + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§