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

Accept FnOnce instead of Fn in canvas cache draw #1694

Merged
merged 1 commit into from
Feb 6, 2023
Merged

Accept FnOnce instead of Fn in canvas cache draw #1694

merged 1 commit into from
Feb 6, 2023

Conversation

mochalins
Copy link
Contributor

Use FnOnce in draw function signature instead of Fn, permitting the use of iterators and other one-time functions. Resolves #1119

Use FnOnce in `draw` function signature instead of `Fn`, permitting the
use of iterators and other one-time functions.
@hecrj hecrj added the feature New feature or request label Feb 6, 2023
@hecrj hecrj added this to the 0.8.0 milestone Feb 6, 2023
@hecrj hecrj enabled auto-merge February 6, 2023 17:06
@mochalins
Copy link
Contributor Author

Looks like tests keep failing at installing dependencies

@hecrj hecrj merged commit 3445786 into iced-rs:master Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
canvas feature New feature or request widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Why not use FnOnce rather than Fn in Cache::draw?
2 participants