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

Use arbitrary self types (self: Arc<Self>) #878

Closed
GabrielMajeri opened this issue Nov 16, 2017 · 1 comment · Fixed by #1948
Closed

Use arbitrary self types (self: Arc<Self>) #878

GabrielMajeri opened this issue Nov 16, 2017 · 1 comment · Fixed by #1948

Comments

@GabrielMajeri
Copy link
Contributor

GabrielMajeri commented Nov 16, 2017

I noticed one of Vulkano's design troubles was that

Vulkano users are encouraged to manipulate objects through Arcs. However there is no way to add a method pub fn foo(self: Arc) to an object

A recent pull request added this feature. It is currently nightly-only, but it does work. It would be cool to switch Vulkano to use this once it becomes stable. See this Rust playground for an example with Arcs.

I've opened this issue to create a tracking list of what needs to be changed for self: Arc<Self>.

@tomaka
Copy link
Member

tomaka commented Nov 16, 2017

Great, thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants