Struct jrsonnet_evaluator::DummyImportResolver
source · pub struct DummyImportResolver;
Expand description
Dummy resolver, can’t resolve/load any file
Trait Implementations§
source§impl ImportResolver for DummyImportResolver
impl ImportResolver for DummyImportResolver
source§fn load_file_contents(&self, _resolved: &SourcePath) -> Result<Vec<u8>>
fn load_file_contents(&self, _resolved: &SourcePath) -> Result<Vec<u8>>
Load resolved file
This should only be called with value returned from [
ImportResolver::resolve_file
]/ImportResolver::resolve
,
this cannot be resolved using associated type, as evaluator uses object instead of generic for ImportResolver
source§fn resolve_from(&self, from: &SourcePath, path: &str) -> Result<SourcePath>
fn resolve_from(&self, from: &SourcePath, path: &str) -> Result<SourcePath>
Resolves file path, e.g.
(/home/user/manifests, b.libjsonnet)
can correspond
both to /home/user/manifests/b.libjsonnet
and to /home/user/${vendor}/b.libjsonnet
where ${vendor}
is a library path. Read more