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

crate-only mutability #4

Open
oli-obk opened this issue Jul 11, 2022 · 0 comments
Open

crate-only mutability #4

oli-obk opened this issue Jul 11, 2022 · 0 comments
Labels
question Further information is requested

Comments

@oli-obk
Copy link

oli-obk commented Jul 11, 2022

in https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/Read-only.20fields/near/289150836 @scottmcm asked whether

Could I use keyword generics to be generic over pub(crate) vs mut(crate)?

if we make pub part of the effect logic, we could probably write some sort of where bound, but it seems like an edge case that would only need to exist for supporting read-only fields (writable from the same module)

@oli-obk oli-obk added the question Further information is requested label Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant