Skip to main content

StackEnvironment

Type Alias StackEnvironment 

Source
pub type StackEnvironment<'a> = &'a [(&'a str, usize)];
Expand description

Type alias for static/stack compatible bindings.

Trait Implementations§

Source§

impl<'a> StackMap<'a, usize> for StackEnvironment<'a>

Source§

fn lookup(&self, key: &'a str) -> Option<usize>

Looks up a value associated with the given key in the stack. Read more
Source§

fn export_key_values<const K: usize>(&self, keys: &'a [&str; K]) -> [V; K]

Exports the values for the given keys from the local bindings. Read more