Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Process for adding/requesting an impl for Rust's NonZero types
Hi All, I am finding myself needing to compare sizes std::num::NonZero<T>
with T
where T: ZeroablePrimitive
, using <
, >
, =
. But since they are not directly comparable, I have to NonZero::<T>::get()
each time, and it is quite noisy.
What is the process for requesting or proposing the implementations PartialOrd<NonZero<T>>
and PartialEq<NonZero<T>>
for T
(and the reverse) in the Rust std so that I may compare these values directly?
2 posts - 2 participants
🏷️ rust_feed