[−][src]Struct picolang::runtime::PicoRuntime
Fields
variables: Vec<HashMap<String, String>>globals: HashMap<String, PicoValue>namespaced_variables: HashMap<String, HashMap<String, JsonValue>>json_variables: Vec<HashMap<String, JsonValue>>Implementations
impl<'a> PicoRuntime<'a>[src]
pub fn new(root_rule: &'a PicoRules) -> Self[src]
pub fn initialise(self) -> Self[src]
pub fn make_ctx(&self) -> PicoContext[src]
pub fn exec_root_with_context(&mut self, ctx: &mut PicoContext)[src]
pub fn add(&mut self)[src]
pub fn remove(&mut self)[src]
pub fn json_get(&self, key: &str) -> Option<&Value>[src]
pub fn json_set(&mut self, key: &str, value: &Value)[src]
pub fn json_pop(&mut self) -> HashMap<String, JsonValue>[src]
pub fn get(&self, key: &str) -> Option<&String>[src]
pub fn set(&mut self, key: &str, value: &str)[src]
pub fn global_get(&self, key: &str) -> Option<&PicoValue>[src]
pub fn global_set(&mut self, key: &str, value: &PicoValue)[src]
pub fn new_namespace(&mut self, name: &str)[src]
pub fn add_namespace(&mut self, name: &str)[src]
pub fn ns_get(&self, ns: &str, key: &str) -> Option<&PicoValue>[src]
pub fn ns_set(&mut self, ns: &str, key: &str, value: &PicoValue)[src]
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PicoRuntime<'a>
impl<'a> Send for PicoRuntime<'a>
impl<'a> Sync for PicoRuntime<'a>
impl<'a> Unpin for PicoRuntime<'a>
impl<'a> !UnwindSafe for PicoRuntime<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,