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