Rust Internals
[idea] make PartialOrd method returns custom methods
mathstuf
April 10, 2025, 7:18am
2
I think, in general, you want expression templates for this.
Other related threads/comments:
Implicit buffers, overloading the assignment operator - #2 by scottmcm
Consider splitting [Partial]Eq/Ord into separate traits/operators - #4 by mathstuf
show post in topic
Related topics
Topic
Replies
Views
Activity
[Pre-RFC] Boolean operators that don't return bool
ideas (deprecated)
13
2785
March 25, 2019
PartialOrd, comparison operators,SIMD
ideas (deprecated)
1
1057
March 25, 2019
Pre-RFC core::ops traits for relational operators
language design
52
3061
March 2, 2020
Hypothetical: How would people feel about allowing overloading the return types of comparison operators
19
2446
March 25, 2019
Simplifying custom comparison and hashing
libs
1
882
March 25, 2019