Struct jrsonnet_evaluator::EvaluationSettings[][src]

pub struct EvaluationSettings {
    pub max_stack: usize,
    pub max_trace: usize,
    pub ext_vars: HashMap<IStr, Val>,
    pub ext_natives: HashMap<IStr, Gc<NativeCallback>>,
    pub tla_vars: HashMap<IStr, Val>,
    pub globals: HashMap<IStr, Val>,
    pub import_resolver: Box<dyn ImportResolver>,
    pub manifest_format: ManifestFormat,
    pub trace_format: Box<dyn TraceFormat>,
}

Fields

max_stack: usize

Limits recursion by limiting the number of stack frames

max_trace: usize

Limits amount of stack trace items preserved

ext_vars: HashMap<IStr, Val>

Used for std.extVar

ext_natives: HashMap<IStr, Gc<NativeCallback>>

Used for ext.native

tla_vars: HashMap<IStr, Val>

TLA vars

globals: HashMap<IStr, Val>

Global variables are inserted in default context

import_resolver: Box<dyn ImportResolver>

Used to resolve file locations/contents

manifest_format: ManifestFormat

Used in manifestification functions

trace_format: Box<dyn TraceFormat>

Used for bindings

Trait Implementations

Returns the “default value” for a type. 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.