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)
12
2979
March 16, 2015
Pre-RFC core::ops traits for relational operators
language design
51
3613
December 3, 2019
PartialOrd, comparison operators,SIMD
ideas (deprecated)
0
1093
July 23, 2014
Consider splitting [Partial]Eq/Ord into separate traits/operators
language design
5
945
January 5, 2024
Hypothetical: How would people feel about allowing overloading the return types of comparison operators
18
2672
February 9, 2016