Struct nessa::variable_map::VariableMap
source · pub struct VariableMap { /* private fields */ }Implementations§
source§impl VariableMap
impl VariableMap
pub fn new() -> Self
pub fn add_context(&mut self)
pub fn remove_context(&mut self)
pub fn define_var(&mut self, name: String, idx: usize, t: Type)
pub fn is_var_defined(&mut self, name: &String) -> bool
pub fn is_var_defined_in_last_ctx(&mut self, name: &String) -> bool
pub fn get_var(&mut self, name: &String) -> Option<&(usize, Type)>
pub fn for_each_last_ctx<T: FnMut(usize)>(&self, f: T)
pub fn var_names(&self) -> FxHashSet<&String>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for VariableMap
impl Send for VariableMap
impl Sync for VariableMap
impl Unpin for VariableMap
impl UnwindSafe for VariableMap
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