Struct dmntk_feel_parser::ParsingScope
source · pub struct ParsingScope { /* private fields */ }
Expand description
Parsing scope.
Implementations§
source§impl ParsingScope
impl ParsingScope
sourcepub fn pop(&self) -> Option<ParsingContext>
pub fn pop(&self) -> Option<ParsingContext>
Returns a context removed from the top of the stack.
sourcepub fn push_default(&self)
pub fn push_default(&self)
Puts a default context on the top of the stack.
sourcepub fn set_name(&self, name: Name)
pub fn set_name(&self, name: Name)
Sets a specified name in context placed on the top of the stack.
sourcepub fn set_context(&self, name: Name, ctx: ParsingContext)
pub fn set_context(&self, name: Name, ctx: ParsingContext)
Sets a context under a specified name in the context placed on the top of the stack.
sourcepub fn flattened_keys(&self) -> HashSet<String>
pub fn flattened_keys(&self) -> HashSet<String>
Returns a set of flattened keys from all contexts in scope.
Trait Implementations§
source§impl Default for ParsingScope
impl Default for ParsingScope
source§impl Display for ParsingScope
impl Display for ParsingScope
Auto Trait Implementations§
impl !RefUnwindSafe for ParsingScope
impl Send for ParsingScope
impl !Sync for ParsingScope
impl Unpin for ParsingScope
impl UnwindSafe for ParsingScope
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