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
2810
March 25, 2019
Pre-RFC core::ops traits for relational operators
language design
52
3105
March 2, 2020
Consider splitting [Partial]Eq/Ord into separate traits/operators
language design
6
851
April 4, 2024
PartialOrd, comparison operators,SIMD
ideas (deprecated)
1
1065
March 25, 2019
Hypothetical: How would people feel about allowing overloading the return types of comparison operators
19
2469
March 25, 2019