pub struct MapRuntime { /* private fields */ }Implementations§
Source§impl MapRuntime
impl MapRuntime
pub fn new( variables: BTreeMap<String, Value>, registry: DynamicRegistry, ) -> Self
pub fn from_json_bindings(bindings: Value) -> Result<Self, EvalError>
pub fn schema(&self) -> RuntimeSchema
Trait Implementations§
Source§impl Clone for MapRuntime
impl Clone for MapRuntime
Source§fn clone(&self) -> MapRuntime
fn clone(&self) -> MapRuntime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl RuntimeContext for MapRuntime
impl RuntimeContext for MapRuntime
fn get_variable(&self, name: &str) -> Option<Value>
fn registry(&self) -> &DynamicRegistry
Auto Trait Implementations§
impl !RefUnwindSafe for MapRuntime
impl !UnwindSafe for MapRuntime
impl Freeze for MapRuntime
impl Send for MapRuntime
impl Sync for MapRuntime
impl Unpin for MapRuntime
impl UnsafeUnpin for MapRuntime
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