We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ord
This is related to #5.
On nightly a safe implementation can be done by using core::intrinsic::discriminant_value. This is unstable, but it can be avoided to use a feature in the top-level crate by using #[internal_unstable].
core::intrinsic::discriminant_value
#[internal_unstable]
This is also how std implements PartialOrd and Ord.
std
PartialOrd
Obviously has to be hidden behind a crate feature.
The text was updated successfully, but these errors were encountered:
Does this need to be hidden behind a feature, or should we check for nightly?
nightly
Sorry, something went wrong.
Is it possible to check for nightly? The only thing I know of is this RFC: rust-lang/rust#64796.
you are correct, probably we should use a feature then, because this does not look very ideal: https://stackoverflow.com/questions/49247618/check-whether-compiler-is-nightly-at-compile-time
Successfully merging a pull request may close this issue.
This is related to #5.
On nightly a safe implementation can be done by using
core::intrinsic::discriminant_value
. This is unstable, but it can be avoided to use a feature in the top-level crate by using#[internal_unstable]
.This is also how
std
implementsPartialOrd
andOrd
.Obviously has to be hidden behind a crate feature.
The text was updated successfully, but these errors were encountered: