Make PartialOrd for Vec
allocator independent
#240
Labels
ACP-accepted
API Change Proposal is accepted (seconded with no objections)
api-change-proposal
A proposal to add or alter unstable APIs in the standard libraries
T-libs-api
Proposal
Problem statement
PartialOrd
cannot currently be used on vectors allocated with different allocators.Motivating examples or use cases
PartialEq<Vec<U, A2>> for Vec<T, A1>
.Solution sketch
See PR: rust-lang/rust#112632
Alternatives
Compare underlying slices via
Deref<Target = [T]>
.The text was updated successfully, but these errors were encountered: