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

Simpler run #17

Closed
leudz opened this issue Sep 14, 2019 · 0 comments
Closed

Simpler run #17

leudz opened this issue Sep 14, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@leudz
Copy link
Owner

leudz commented Sep 14, 2019

If it becomes possible to specify some generic arguments while using the impl syntax (rust-lang/rust#63066) World::run could be rewritten as:

fn run<'a, T: Run<'a>>(&'a self, f: impl FnOnce(T::Storage))

Allowing run to be called without , _:

world.run::<&mut usize>(|mut usizes| {/* -- snip -- */})
@leudz leudz added the enhancement New feature or request label Sep 14, 2019
@leudz leudz closed this as completed in f31d965 Apr 22, 2020
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