Skip to content

DynMetadata equality is not documented #99388

Closed
@alercah

Description

@alercah

Location

https://doc.rust-lang.org/std/ptr/struct.DynMetadata.html

Summary

There is no documentation as far as I should see that defines the behaviour of the PartialEq impl for DynMetadata. I think the guarantees that are made or not made should be documented. For instance, are vtables for a given concrete type guaranteed to be unique? People will assume they are, and that == will tell you if the types match. It would not surprise me to learn that this is wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and tools

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions