-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
rand::Rng should be implemented for &Rng #8575
Comments
Visiting for triage. |
Well, I was experimenting with https://github.com/mozilla/rust/blob/master/src/test/bench/noise.rs at the time and thought about replacing the template function it has: https://github.com/mozilla/rust/blob/master/src/test/bench/noise.rs#L26-L29 with a one based on "interfaces". Besides that, I don't write rust at the moment, so I have no other examples. |
Triage: I think this falls under the general complaint that |
Yes, object safety and such means that this should work now. |
add `trim_split_whitespace` Closes rust-lang#8521 changelog: [`trim_split_whitespace`]
Well, I've read that rust doesn't encourage using traits as interfaces. But to me it sounds like a must. On IRC @cmr also suggested me to open an issue. Here it is.
It seems reasonable to have an implementation of Rng for &Rng. Or be it &mut Rng or whatever is necessary to make it work when you use traits as an interface.
The text was updated successfully, but these errors were encountered: