Skip to content

Accept FnOnce instead of Fn in canvas cache draw#1694

Merged
hecrj merged 1 commit intoiced-rs:masterfrom
mochalins:master
Feb 6, 2023
Merged

Accept FnOnce instead of Fn in canvas cache draw#1694
hecrj merged 1 commit intoiced-rs:masterfrom
mochalins:master

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

Comments