Struct jrsonnet_evaluator::ContextBuilder
source · pub struct ContextBuilder { /* private fields */ }
Implementations§
source§impl ContextBuilder
impl ContextBuilder
sourcepub fn dangerous_empty_state() -> Self
pub fn dangerous_empty_state() -> Self
Panics
Panics aren’t directly caused by this function, but if state from resulting context is used
pub fn new(state: State) -> Self
pub fn with_capacity(state: State, capacity: usize) -> Self
pub fn extend(parent: Context) -> Self
sourcepub fn bind(&mut self, name: IStr, value: Thunk<Val>) -> &mut Self
pub fn bind(&mut self, name: IStr, value: Thunk<Val>) -> &mut Self
Panics
If name
is already bound