Struct pairing::bls12_381::FrRepr [] [src]

pub struct FrRepr(pub [u64; 4]);

Trait Implementations

impl Copy for FrRepr
[src]

impl Clone for FrRepr
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for FrRepr
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for FrRepr
[src]

impl Default for FrRepr
[src]

[src]

Returns the "default value" for a type. Read more

impl Debug for FrRepr
[src]

[src]

Formats the value using the given formatter.

impl Rand for FrRepr
[src]

[src]

Generates a random instance of this type using the specified source of randomness. Read more

impl Display for FrRepr
[src]

[src]

Formats the value using the given formatter. Read more

impl AsRef<[u64]> for FrRepr
[src]

[src]

Performs the conversion.

impl AsMut<[u64]> for FrRepr
[src]

[src]

Performs the conversion.

impl From<u64> for FrRepr
[src]

[src]

Performs the conversion.

impl Ord for FrRepr
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd for FrRepr
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PrimeFieldRepr for FrRepr
[src]

[src]

Returns true iff this number is odd.

[src]

Returns true iff this number is even.

[src]

Returns true iff this number is zero.

[src]

Performs a rightwise bitshift of this number by some amount.

[src]

Performs a rightwise bitshift of this number, effectively dividing it by 2. Read more

[src]

Performs a leftwise bitshift of this number, effectively multiplying it by 2. Overflow is ignored. Read more

[src]

Performs a leftwise bitshift of this number by some amount.

[src]

Compute the number of bits needed to encode this number. Always a multiple of 64. Read more

[src]

Add another representation to this one, returning the carry bit.

[src]

Subtract another represetation from this one, returning the borrow bit.

[src]

Writes this PrimeFieldRepr as a big endian integer. Always writes (num_bits / 8) bytes. Read more

[src]

Reads a big endian integer occupying (num_bits / 8) bytes into this representation. Read more

impl From<Fr> for FrRepr
[src]

[src]

Performs the conversion.