pub struct PureEvaluator { /* private fields */ }
Expand description
Pure Jsonnet evaluator - performs only deterministic computations
Implementations§
Source§impl PureEvaluator
impl PureEvaluator
Sourcepub fn with_tla_args(tla_args: HashMap<String, String>) -> Self
pub fn with_tla_args(tla_args: HashMap<String, String>) -> Self
Create a pure evaluator with top-level arguments
Sourcepub fn with_config(
tla_args: HashMap<String, String>,
ext_vars: HashMap<String, String>,
) -> Self
pub fn with_config( tla_args: HashMap<String, String>, ext_vars: HashMap<String, String>, ) -> Self
Create a pure evaluator with both TLA and external variables
Sourcepub fn evaluate(&mut self, source: &str) -> Result<JsonnetValue>
pub fn evaluate(&mut self, source: &str) -> Result<JsonnetValue>
Pure evaluation of Jsonnet source code
This function is PURE: it performs only deterministic computations and has no side effects. Same input always produces same output.
Trait Implementations§
Source§impl Clone for PureEvaluator
impl Clone for PureEvaluator
Source§fn clone(&self) -> PureEvaluator
fn clone(&self) -> PureEvaluator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PureEvaluator
impl Debug for PureEvaluator
Auto Trait Implementations§
impl Freeze for PureEvaluator
impl RefUnwindSafe for PureEvaluator
impl Send for PureEvaluator
impl Sync for PureEvaluator
impl Unpin for PureEvaluator
impl UnwindSafe for PureEvaluator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more