Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Subst trait #11

Open
brendanzab opened this issue Jul 1, 2018 · 0 comments
Open

Add a Subst trait #11

brendanzab opened this issue Jul 1, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@brendanzab
Copy link
Owner

We'd like a Subst trait, like in Unbound. It might look something like this:

trait Subst<T> {
    fn subst(&mut self, name: &Name, replacement: &T);
    fn substs(&mut self, replacements: &[(Name, T)]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant