pub trait Resolver: Debug + Send {
// Required method
fn load(
&mut self,
raw_ref: &str,
current_doc: &Path,
) -> Result<LoadedDoc, ResolverError>;
}Required Methods§
Sourcefn load(
&mut self,
raw_ref: &str,
current_doc: &Path,
) -> Result<LoadedDoc, ResolverError>
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 a shared Arc handle to
the same Value without re-reading or re-cloning the JSON tree.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".