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

SmallBox pin #16

Closed
rw opened this issue Jul 10, 2020 · 1 comment
Closed

SmallBox pin #16

rw opened this issue Jul 10, 2020 · 1 comment

Comments

@rw
Copy link

rw commented Jul 10, 2020

I think it would be useful to include a pin function analogous to Box::pin. Would that be safe? It could help with async traits.

@andylokandy
Copy link
Owner

I don't think SmallBox is pinned, because you can move it on stack.

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

No branches or pull requests

2 participants