Struct stack_graphs::partial::PartialSymbolStackBindings [−][src]
pub struct PartialSymbolStackBindings { /* fields omitted */ }
Implementations
Creates a new, empty set of partial symbol stack bindings.
Returns the partial symbol stack that a particular symbol stack variable matched. Returns an error if that variable didn’t match anything.
pub fn add(
&mut self,
partials: &mut PartialPaths,
variable: SymbolStackVariable,
symbols: PartialSymbolStack,
scope_bindings: &mut PartialScopeStackBindings
) -> Result<(), PathResolutionError>
pub fn add(
&mut self,
partials: &mut PartialPaths,
variable: SymbolStackVariable,
symbols: PartialSymbolStack,
scope_bindings: &mut PartialScopeStackBindings
) -> Result<(), PathResolutionError>
Adds a new binding from a symbol stack variable to the partial symbol stack that it matched. Returns an error if you try to bind a particular variable more than once.