Skip to content

rand::Rng should be implemented for &Rng #8575

Closed
@nsf

Description

@nsf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions