pub struct FileImportResolver { /* private fields */ }
Expand description

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

Implementations§

Dynamically add new jpath, used by bindings

Trait Implementations§

Returns the “default value” for a type. Read more
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
Resolves absolute path, doesn’t supports jpath and other fancy things
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
For downcasts
Define how to visit values referred by this value. Read more
Whether this type should be tracked by the collector. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.