Skip to content

Implement From<T> for Wrapping<T> and From<Wrapping<T>> for T #44937

Closed
@sportzer

Description

@sportzer

It would be nice if std::num::Wrapping supported From<T> and Into<T>, at least when T is a numeric primitive. I assumed these impls would exist and was surprised to find that they do not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions