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

RFC: Private trait items #275

Open
rust-highfive opened this Issue Sep 24, 2014 · 5 comments

Comments

Projects
None yet
6 participants
@rust-highfive
Copy link

rust-highfive commented Sep 24, 2014

Tracking issue for postponed PR #52

@nrc nrc added the T-lang label Aug 17, 2016

withoutboats pushed a commit to withoutboats/rfcs that referenced this issue Jan 15, 2017

Merge pull request rust-lang#275 from alexcrichton/buffer-start-send
Send as many items as possible before poll_complete
@crumblingstatue

This comment has been minimized.

Copy link

crumblingstatue commented Jun 17, 2017

We could use pub(restricted) for this, instead of reintroducing priv.

In particular, maybe we could use pub(impl) to restrict visibility to the "implementation" of the trait.

@petrochenkov

This comment has been minimized.

Copy link
Contributor

petrochenkov commented Jun 17, 2017

Closing in favor of #2028

@crumblingstatue

This comment has been minimized.

Copy link

crumblingstatue commented Jun 17, 2017

@petrochenkov
As I understand it, your proposal is different, as it disallows implementing a private trait item.

This RFC is for trait items that can be implemented, but not visible to users.

@petrochenkov

This comment has been minimized.

Copy link
Contributor

petrochenkov commented Jun 17, 2017

Hm, indeed, that RFC proposes something very different (I wouldn't call that "private trait items").

@Restioson

This comment has been minimized.

Copy link

Restioson commented Jan 17, 2018

Hi, I just wanted to cross post my use case from #52 here so it can hopefully be given some attention.

Perhaps the RFC could be rewritten with some of the new ideas such as using pub(restricted) syntax instead of priv keyword or defaultly private methods?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.