ff: Add Ord bound to PrimeField

This commit is contained in:
Jack Grigg
2020-04-23 16:30:36 +12:00
parent 1a40cfd39c
commit 1fe3e3784c
4 changed files with 36 additions and 16 deletions

View File

@@ -258,7 +258,7 @@ impl fmt::Display for PrimeFieldDecodingError {
/// This represents an element of a prime field.
pub trait PrimeField:
Field + From<u64> + BitAnd<u64, Output = u64> + Shr<u32, Output = Self>
Field + Ord + From<u64> + BitAnd<u64, Output = u64> + Shr<u32, Output = Self>
{
/// The prime field can be converted back and forth into this biginteger
/// representation.