Struct dmntk_feel::Scope[][src]

pub struct Scope { /* fields omitted */ }
Expand description

The FEEL scope.

Implementations

Creates a new and empty Scope.

Pushes a context on the top of the scope stack.

Takes and returns a context from the top of the stack.

Peeks a to context from the top of the stack. If the stack is empty, the default context is returned.

Returns a vector of flattened keys in all contexts in scope.

pub fn get_entry(&self, name: &Name) -> Option<Value>

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)

Sets a specified value for entry name in FeelContext placed on the top of the scope stack (last context).

Sets a null value for entry name in FeelContext placed on the top of the scope stack (last context).

Trait Implementations

Formats the value using the given formatter. Read more

Creates a default Scope containing single default FeelContext.

Converts this Scope to its textual representation.

Creates a Scope from FeelContext.

Converts this Scope to its JSON representation.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.