Skip to content

impl PartialEq<Vec<T>> for &'_ [T] / [T; N] #2917

Closed
@sollyucko

Description

@sollyucko

Currently:

But neither [T; N], &'_ [T], &'_ mut [T], nor [T] implement PartialEq<Vec<T>>. This means that equality tests have to be pointlessly flipped. Is there any reason for this behavior? Would it be possible to fix this?

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