Trait SymbolStack

Source
pub trait SymbolStack<K>: SymbolMap<K> {
    // Required method
    fn prev(&self) -> Option<&Self>;
}
Expand description

A trait for a stack-like symbol table in which a reference to the previous layer may be obtained

Required Methods§

Source

fn prev(&self) -> Option<&Self>

Get the previous layer of this symbol table

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§