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

Change Solver trait to use mutable reference #22

Merged
1 commit merged into from
Jun 3, 2024

Conversation

dwmunster
Copy link
Contributor

Overview

Since the solve method of the solvers requires an exclusive reference to perform borrow_mut(), the solve method can use a mutable reference directly which saves on some levels of indirection.

Cases where existing Rc<RefCell<Sketch>>'s need to solve can be handled by changing .clone() to .borrow_mut().deref_mut().

@TobiasJacob TobiasJacob closed this pull request by merging all changes into CADmium-Co:main in acf484e Jun 3, 2024
@dwmunster dwmunster deleted the feature/solver-ref branch June 4, 2024 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants