Struct jrsonnet_evaluator::FileImportResolver[][src]

pub struct FileImportResolver {
    pub library_paths: Vec<PathBuf>,
}
Expand description

File resolver, can load file from both FS and library paths

Fields

library_paths: Vec<PathBuf>

Library directories to search for file. Referred to as jpath in original jsonnet implementation.

Trait Implementations

Returns the “default value” for a type. Read more

Resolves real 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

Reads file from filesystem, should be used only with path received from resolve_file

Safety Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.