Struct dmntk_feel::Scope [−][src]
pub struct Scope { /* fields omitted */ }
Expand description
The FEEL
scope.
Implementations
impl Scope
[src]
impl Scope
[src]pub fn push(&self, ctx: FeelContext)
[src]
pub fn push(&self, ctx: FeelContext)
[src]Pushes a context on the top of the scope stack.
pub fn pop(&self) -> Option<FeelContext>
[src]
pub fn pop(&self) -> Option<FeelContext>
[src]Takes and returns a context from the top of the scope stack.
pub fn flatten_keys(&self) -> HashSet<String>
[src]
pub fn flatten_keys(&self) -> HashSet<String>
[src]Returns a vector of flattened keys in all contexts in scope.
pub fn get_entry(&self, name: &Name) -> Option<Value>
[src]
pub fn get_entry(&self, name: &Name) -> Option<Value>
[src]Returns a value for an entry specified by name. Entries are searched from the last to the first context (from top to bottom of scope stack).
pub fn set_entry(&self, name: &Name, value: Value)
[src]
pub fn set_entry(&self, name: &Name, value: Value)
[src]Sets a value for entry name in FeelContext placed on the top of the scope stack (last context).
Trait Implementations
impl Default for Scope
[src]
impl Default for Scope
[src]fn default() -> Self
[src]
fn default() -> Self
[src]Creates a default Scope containing one default FeelContext.
impl From<FeelContext> for Scope
[src]
impl From<FeelContext> for Scope
[src]fn from(context: FeelContext) -> Self
[src]
fn from(context: FeelContext) -> Self
[src]Creates a Scope from FeelContext.