Skip to main content

Resolver

Trait Resolver 

Source
pub trait Resolver: Debug + Send {
    // Required method
    fn load(
        &mut self,
        raw_ref: &str,
        current_doc: &Path,
    ) -> Result<LoadedDoc, ResolverError>;
}

Required Methods§

Source

fn load( &mut self, raw_ref: &str, current_doc: &Path, ) -> Result<LoadedDoc, ResolverError>

Load the document referenced by raw_ref, resolved relative to current_doc. Implementations cache by canonical path; repeated loads of the same logical document return the same Value clone without re-reading from disk.

Implementors§