@chrysn Probably better to admit defeat, throw some includes
method on types that previously had contains
with PartialOrd
, and then copy-paste map/set std types (i. e. the ones that cannot be fixed) into your own library with proper bounds.
Or break the subtyping relationship between PartialEq
/PartialOrd
and Eq
/Ord
, but let the compiler try and patch up the incompatibilities. 😅
In the end I have my language where this all works correctly, so dealing with Rust is not my priority.
=> More informations about this toot | View the thread | More toots from soc@chaos.social
=> View chrysn@chaos.social profile
text/gemini
This content has been proxied by September (ba2dc).