[][src]Struct jrsonnet_evaluator::EvaluationSettings

pub struct EvaluationSettings {
    pub max_stack: usize,
    pub max_trace: usize,
    pub ext_vars: HashMap<Rc<str>, Val>,
    pub ext_natives: HashMap<Rc<str>, Rc<NativeCallback>>,
    pub tla_vars: HashMap<Rc<str>, Val>,
    pub globals: HashMap<Rc<str>, 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<Rc<str>, Val>

Used for std.extVar

ext_natives: HashMap<Rc<str>, Rc<NativeCallback>>

Used for ext.native

tla_vars: HashMap<Rc<str>, Val>

TLA vars

globals: HashMap<Rc<str>, 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

impl Default for EvaluationSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.