Skip to content

std::convert docs mention the "to" convention, but don't implement it #24712

Closed
@shepmaster

Description

@shepmaster

The std::convert docs say:

They follow the standard Rust conventions of as/to/into/from.

(emphasis mine)

However, there isn't a To trait, and none of AsMut / AsRef / From / Into implement a to method. Not sure if this is a typo or an oversight resulting in a missing trait.

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